Skip to content

Commit

Permalink
Change the limit of selectable objects to 255
Browse files Browse the repository at this point in the history
Now we use a full byte to store the model ID, we can go up to 255.

CURA-11984
  • Loading branch information
wawanbreton committed Jul 17, 2024
1 parent f22b7a4 commit 250be46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UM/View/SelectionPass.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ def _renderFacesMode(self):
normal_transformation = node.getCachedNormalMatrix())
self._face_mode_selection_map.append(node)
current_model_id += 1
if current_model_id >= 128:
break # Shader can't handle more than 128 (ids 0 through 127) objects in a group.
if current_model_id >= 255:
break # Shader can't handle more than 255 (ids 0 through 254) objects in a group.
elif node.callDecoration("isGroup"):
node_list.append(node)

Expand Down

0 comments on commit 250be46

Please sign in to comment.