/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include "EditorAreaBlenderComponent.h" #include #include #include #include #include #include #include namespace Vegetation { void EditorAreaBlenderComponent::Reflect(AZ::ReflectContext* context) { ReflectSubClass(context, 1, &EditorAreaComponentBaseVersionConverter); } void EditorAreaBlenderComponent::Init() { ForceOneEntry(); BaseClassType::Init(); } void EditorAreaBlenderComponent::Activate() { ForceOneEntry(); BaseClassType::Activate(); } AZ::u32 EditorAreaBlenderComponent::ConfigurationChanged() { ForceOneEntry(); return BaseClassType::ConfigurationChanged(); } void EditorAreaBlenderComponent::ForceOneEntry() { if (m_configuration.m_vegetationAreaIds.empty()) { m_configuration.m_vegetationAreaIds.push_back(); SetDirty(); } } }