From 58e8152f192d51bdb525ed55a0fb4ad0ef1e515b Mon Sep 17 00:00:00 2001 From: MrClock Date: Mon, 23 Dec 2024 19:24:35 +0100 Subject: [PATCH] Fixed vmass set on each behavior Set Mass On Each was not operating on the whole mesh in Object mode --- Arma3ObjectBuilder/utilities/masses.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Arma3ObjectBuilder/utilities/masses.py b/Arma3ObjectBuilder/utilities/masses.py index 46945b1..7bf689c 100644 --- a/Arma3ObjectBuilder/utilities/masses.py +++ b/Arma3ObjectBuilder/utilities/masses.py @@ -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): @@ -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):