You've already forked stocker_helper
Fix: Issue with boundary alignment and size
This commit is contained in:
+2
-2
@@ -6,7 +6,7 @@ from .scripts import phase2_geometry as logic
|
||||
bl_info = {
|
||||
"name": "Stocker Helper",
|
||||
"author": "Gary Ritchie",
|
||||
"version": (0, 4, 0),
|
||||
"version": (0, 5, 0),
|
||||
"blender": (4, 0, 0),
|
||||
"location": "View3D > Sidebar > Stocker",
|
||||
"description": "Creates boundary object with Stocker Geometry Nodes assets (sold separately.)",
|
||||
@@ -97,7 +97,7 @@ class STOCKER_OT_setup(bpy.types.Operator):
|
||||
selected_objs = context.selected_objects
|
||||
|
||||
# 2. Run logic from previous phases
|
||||
bounds = logic.calculate_global_bounds(selected_objs)
|
||||
bounds = logic.calculate_global_bounds(selected_objs, parent=selected_objs[0])
|
||||
if not bounds:
|
||||
self.report({'ERROR'}, "No valid mesh objects selected.")
|
||||
return {'CANCELLED'}
|
||||
|
||||
Reference in New Issue
Block a user