mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Compile out editor-only logic within validate_property in games
This commit is contained in:
@@ -83,6 +83,9 @@ void NoiseTexture3D::_bind_methods() {
|
||||
}
|
||||
|
||||
void NoiseTexture3D::_validate_property(PropertyInfo &p_property) const {
|
||||
if (!Engine::get_singleton()->is_editor_hint()) {
|
||||
return;
|
||||
}
|
||||
if (p_property.name == "seamless_blend_skirt") {
|
||||
if (!seamless) {
|
||||
p_property.usage = PROPERTY_USAGE_NO_EDITOR;
|
||||
|
||||
Reference in New Issue
Block a user