Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #5064. Matrix In Recreate operator exception. Fixed. #5066

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nodes/matrix/matrix_in_mk4.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def migrate_from(self, old_node):
self.angle_units = AngleUnits.DEGREES
self.last_angle_units = AngleUnits.DEGREES

elif old_node.bl_idname == "SvMatrixInNodeMK4":
elif old_node.bl_idname == "SvMatrixInNodeMK3":
self.rotation_mode = old_node.mode

def sv_init(self, context):
Expand Down
9 changes: 5 additions & 4 deletions old_nodes/matrix_in_mk3.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,11 @@ def update_angle(self, context):

def migrate_from(self, old_node):
''' Migration from MK2 (attributes mapping) '''
self.location_ = old_node.l_
self.scale = old_node.s_
self.axis = old_node.r_
self.angle = old_node.a_
if old_node.bl_idname == "SvMatrixGenNodeMK2":
self.location_ = old_node.l_
self.scale = old_node.s_
self.axis = old_node.r_
self.angle = old_node.a_

def sv_init(self, context):

Expand Down
Loading