[Blender_Kitsu] Pub_Edit_Rev: Fix frame_start not found on server #14

Merged
Nick Alberelli merged 1 commits from :fix/publish-edit-revision-frame-start-optional into master 2023-04-18 03:37:46 +02:00
Showing only changes of commit a159463184 - Show all commits

View File

@ -2460,6 +2460,7 @@ class KITSU_OT_vse_publish_edit_revision(bpy.types.Operator):
#'frame_start' is optionally property appearring on all edit_entries for a project if it exists #'frame_start' is optionally property appearring on all edit_entries for a project if it exists
server_frame_start = get_entity_data(gazu.edit.get_edit(self.edit_entry), 'frame_start') server_frame_start = get_entity_data(gazu.edit.get_edit(self.edit_entry), 'frame_start')
if server_frame_start is int:
self.frame_start = server_frame_start self.frame_start = server_frame_start
self.use_frame_start = bool(server_frame_start is not None) self.use_frame_start = bool(server_frame_start is not None)
return context.window_manager.invoke_props_dialog(self) return context.window_manager.invoke_props_dialog(self)