Skip to content

Commit

Permalink
Merge pull request #179 from abosafia/master
Browse files Browse the repository at this point in the history
fix copy operation
  • Loading branch information
pppalain authored Sep 12, 2024
2 parents 2026027 + 74eb857 commit 4d4fb0b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/addons/cam/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,13 @@ def execute(self, context):
o = scene.cam_operations[scene.cam_active_operation]

for k in copyop.keys():
o[k] = copyop[k]
value = copyop[k]
if isinstance(value, bpy.types.PropertyGroup):
for subkey in value.keys():
o[k][subkey] = value[subkey]
elif isinstance(value, (int, float, str, bool, list)):
o[k] = value

o.computing = False

# ###get digits in the end
Expand Down

0 comments on commit 4d4fb0b

Please sign in to comment.