Skip to content

Commit e699fe7

Browse files
committed
Fix for recent GUI update
1 parent 7e32463 commit e699fe7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

kk_bullet_constraints_builder.zip

42 Bytes
Binary file not shown.

kk_bullet_constraints_builder/gui_buttons.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,6 @@ def execute(self, context):
338338
if self.menuIdx < 0:
339339
# Call menu
340340
bpy.ops.wm.call_menu(name="bcb.add_preset")
341-
print("DEBUG button", self.menuIdx)
342341
if self.menuIdx >= 0:
343342
props = context.window_manager.bcb
344343
# Update global vars (only for initializing on new scene)
@@ -367,6 +366,8 @@ def execute(self, context):
367366
if len(elemGrps) < maxMenuElementGroupItems:
368367
# Add element group (syncing element group indices happens on execution)
369368
elemGrps.append(elemGrps[props.menu_selectedElemGrp].copy())
369+
# Make copy of assistant data rather than instance
370+
elemGrps[-1][EGSidxAsst] = elemGrps[-1][EGSidxAsst].copy()
370371
# Update menu selection
371372
props.menu_selectedElemGrp = len(elemGrps) -1
372373
else: self.report({'ERROR'}, "Maximum allowed element group count reached.") # Create popup message

kk_bullet_constraints_builder/monitor.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,21 +1333,20 @@ def monitor_displCorrectDiffExport(scene):
13331333
vLoc_world = objFM.matrix_world *vert.co # Vertex location in world space
13341334
vLocData.append(vLoc_world)
13351335

1336-
if len(vLocData): print("Displacement correction vertices: %d" %len(vLocData))
1337-
13381336
# Export data to file
13391337
if not qStartFrame and len(vLocData):
13401338
if len(vLocData) == len(vLocDataStart):
13411339
for idx in range(len(vLocData)):
13421340
vLocData[idx] = tuple(vLocData[idx] -vLocDataStart[idx])
13431341
filePath = os.path.join(logPath, "bcb-diff-%d.cfg" %len(vLocData))
13441342
if not os.path.exists(filePath):
1343+
print("Displacement correction vertices: %d" %len(vLocData))
13451344
print("Exporting displacement correction data to:", filePath)
13461345
dataToFile(vLocData, filePath, qPickle=True, qCompressed=True)
13471346
# Clear vertex location properties
13481347
del bpy.app.driver_namespace["bcb_vLocs"]
13491348
else:
1350-
print("Error: Displacement correction vertex count mismatch, no file exported.")
1349+
print("Error: Displacement correction vertex count mismatch, no file exported.", len(vLocDataStart), len(vLocData))
13511350

13521351
################################################################################
13531352

0 commit comments

Comments
 (0)