Compile out editor-only logic within validate_property in games
This commit is contained in:
@ -88,6 +88,9 @@ void GraphElement::_notification(int p_what) {
|
||||
}
|
||||
|
||||
void GraphElement::_validate_property(PropertyInfo &p_property) const {
|
||||
if (!Engine::get_singleton()->is_editor_hint()) {
|
||||
return;
|
||||
}
|
||||
GraphEdit *graph = Object::cast_to<GraphEdit>(get_parent());
|
||||
if (graph) {
|
||||
if (p_property.name == "position") {
|
||||
|
||||
Reference in New Issue
Block a user