From a5b80c06bc7a7ffd63c13fb13ae1565202a61c0c Mon Sep 17 00:00:00 2001 From: Jesse Yurkovich Date: Tue, 11 Mar 2025 06:22:34 +0100 Subject: [PATCH] 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 --- source/blender/makesrna/intern/rna_nodetree.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/makesrna/intern/rna_nodetree.cc b/source/blender/makesrna/intern/rna_nodetree.cc index fbb062bd5a9..217f1ef7ad5 100644 --- a/source/blender/makesrna/intern/rna_nodetree.cc +++ b/source/blender/makesrna/intern/rna_nodetree.cc @@ -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");