Skip to content

Commit

Permalink
Fixed vmass set on each behavior
Browse files Browse the repository at this point in the history
Set Mass On Each was not operating on the whole mesh in Object mode
  • Loading branch information
MrClock8163 committed Dec 23, 2024
1 parent 2bf8131 commit 58e8152
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Arma3ObjectBuilder/utilities/masses.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@

import numpy as np
import math
from array import array

import bmesh
from mathutils import Vector
from mathutils.kdtree import KDTree

from . import generic as utils
from . import clouds as cloudutils


def can_edit_mass(context):
Expand Down Expand Up @@ -77,8 +75,7 @@ def set_selection_mass_each(obj, value):
verts = [vertex for vertex in bm.verts if vertex.select]

for vertex in verts:
if vertex.select:
vertex[layer] = round(value, 3)
vertex[layer] = value


def set_selection_mass_distribute_uniform(obj, value):
Expand Down

0 comments on commit 58e8152

Please sign in to comment.