Skip to content

Commit ba42267

Browse files
committed
Updated variable names
Updated "attached_id" to "parentObjectId"
1 parent 32a97bc commit ba42267

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/windows/video_widget.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def paintEvent(self, event, *args):
213213
scale = self.transforming_clip.data['scale']
214214

215215
# Set scale as STRETCH if the clip is attached to an object
216-
if (raw_properties.get('attached_id').get('value') != 'None'):
216+
if (raw_properties.get('parentObjectId').get('value') != 'None'):
217217
scale = openshot.SCALE_STRETCH
218218

219219
if scale == openshot.SCALE_FIT:

src/windows/views/properties_tableview.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def contextMenuEvent(self, event):
439439
self.choices.append({"name": _("Detected Objects"), "value": object_index_choices, "selected": False, "icon": None})
440440

441441
# Handle clip attach options
442-
if property_key == "attached_id" and not self.choices:
442+
if property_key == "parentObjectId" and not self.choices:
443443
# Add all Clips as choices - initialize with None
444444
tracked_choices = [{
445445
"name": "None",
@@ -497,7 +497,7 @@ def contextMenuEvent(self, event):
497497
x2 = object_properties['x2']
498498
y2 = object_properties['y2']
499499
# Get the tracked object's icon from the clip's icon
500-
tracked_object_icon = icon_pixmap.copy(QRect(x1*icon_size, y1*icon_size, (x2-x1)*icon_size, (y2-y1)*icon_size/2)).scaled(icon_size, icon_size)
500+
tracked_object_icon = icon_pixmap.copy(QRect(x1*icon_size, y1*icon_size, (x2-x1)*icon_size, (y2-y1)*icon_size)).scaled(icon_size, icon_size)
501501
tracked_objects.append({"name": str(object_id),
502502
"value": str(object_id),
503503
"selected": False,

0 commit comments

Comments
 (0)