Fix #134764: Increase range of allowed node locations
The bug was caused because the new node's location was being clamped to the [-100000, 100000] range. Expand this by 10x further. Pull Request: https://projects.blender.org/blender/blender/pulls/134887
This commit is contained in:
committed by
Jesse Yurkovich
parent
90e47e6bc9
commit
a5b80c06bc
@@ -11215,14 +11215,14 @@ static void rna_def_node(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "location", PROP_FLOAT, PROP_XYZ);
|
||||
RNA_def_property_array(prop, 2);
|
||||
RNA_def_property_float_funcs(prop, "rna_Node_location_get", "rna_Node_location_set", nullptr);
|
||||
RNA_def_property_range(prop, -100000.0f, 100000.0f);
|
||||
RNA_def_property_range(prop, -1000000.0f, 1000000.0f);
|
||||
RNA_def_property_ui_text(prop, "Location", "Location of the node within its parent frame");
|
||||
RNA_def_property_update(prop, NC_NODE, "rna_Node_update");
|
||||
|
||||
prop = RNA_def_property(srna, "location_absolute", PROP_FLOAT, PROP_XYZ);
|
||||
RNA_def_property_float_sdna(prop, nullptr, "location");
|
||||
RNA_def_property_array(prop, 2);
|
||||
RNA_def_property_range(prop, -100000.0f, 100000.0f);
|
||||
RNA_def_property_range(prop, -1000000.0f, 1000000.0f);
|
||||
RNA_def_property_ui_text(prop, "Absolute Location", "Location of the node in the entire canvas");
|
||||
RNA_def_property_update(prop, NC_NODE, "rna_Node_update");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user