fix: Review

This commit is contained in:
Fabian 2021-07-01 14:53:14 +02:00
parent 3a5a5fc633
commit d01a434fb7

View File

@ -27,7 +27,6 @@ import blf
import bpy
import gpu
import mathutils
# from mathutils import Vector
from bpy_extras import view3d_utils
from gpu_extras.batch import batch_for_shader
from replication.constants import (STATE_ACTIVE, STATE_AUTH, STATE_CONFIG,
@ -447,8 +446,7 @@ class UserModeWidget(Widget):
area, region, rv3d = view3d_find()
viewport_coord = project_to_viewport(region, rv3d, (0, 0))
for select_obj in user_selection:
obj = find_from_attr("uuid", select_obj, bpy.data.objects)
obj = find_from_attr("uuid", user_selection[0], bpy.data.objects)
if not obj:
return
mode_current = self.data.get('mode_current')