You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Compile out editor-only logic within validate_property in games
This commit is contained in:
@@ -454,7 +454,7 @@ AABB GPUParticles3D::capture_aabb() const {
|
||||
}
|
||||
|
||||
void GPUParticles3D::_validate_property(PropertyInfo &p_property) const {
|
||||
if (p_property.name == "emitting") {
|
||||
if (Engine::get_singleton()->is_editor_hint() && p_property.name == "emitting") {
|
||||
p_property.hint = one_shot ? PROPERTY_HINT_ONESHOT : PROPERTY_HINT_NONE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user