Skip to content

Commit

Permalink
Merge pull request #1955 from patrtoth/normalization-in-user-extension
Browse files Browse the repository at this point in the history
Allow normalization in gather_attribute_change user extension
  • Loading branch information
julienduroure authored Sep 6, 2023
2 parents d5ad46c + 75ee028 commit 81bd796
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def gather_primitive_attributes(blender_primitive, export_settings):
return attributes


def array_to_accessor(array, component_type, data_type, include_max_and_min=False):
def array_to_accessor(array, component_type, data_type, include_max_and_min=False, normalized=None):

amax = None
amin = None
Expand All @@ -63,7 +63,7 @@ def array_to_accessor(array, component_type, data_type, include_max_and_min=Fals
max=amax,
min=amin,
name=None,
normalized=None,
normalized=normalized,
sparse=None,
type=data_type,
)
Expand Down Expand Up @@ -193,6 +193,7 @@ def __gather_attribute(blender_primitive, attribute, export_settings):
data['data'],
component_type=data['component_type'],
data_type=data['data_type'],
include_max_and_min=include_max_and_mins.get(attribute, False)
include_max_and_min=include_max_and_mins.get(attribute, False),
normalized=data.get('normalized')
)
}

0 comments on commit 81bd796

Please sign in to comment.