From 94d977354804608d29281a7e3e940b71aa148865 Mon Sep 17 00:00:00 2001 From: FeeshWyvern Date: Mon, 27 Feb 2023 20:02:34 -0800 Subject: [PATCH 1/3] Bug fix: Correctly set the name of the attributes. PR #3940 did not seem to update in Master? --- port/PyAssimp/pyassimp/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/port/PyAssimp/pyassimp/core.py b/port/PyAssimp/pyassimp/core.py index 35ad882b3..37beac886 100644 --- a/port/PyAssimp/pyassimp/core.py +++ b/port/PyAssimp/pyassimp/core.py @@ -211,7 +211,7 @@ def _init(self, target = None, parent = None): else: # starts with 'm' but not iterable - setattr(target, m, obj) + setattr(target, name, obj) logger.debug("Added " + name + " as self." + name + " (type: " + str(type(obj)) + ")") if _is_init_type(obj): From f9fcf33aaa639fbfd386631cb796ac66d01fef94 Mon Sep 17 00:00:00 2001 From: FeeshWyvern Date: Mon, 27 Feb 2023 20:06:05 -0800 Subject: [PATCH 2/3] Bug fix: We should not be accessing `mPrivate` according to structs.Scene and fixes a crash when `mPrivate` points to invalid data. --- port/PyAssimp/pyassimp/core.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/port/PyAssimp/pyassimp/core.py b/port/PyAssimp/pyassimp/core.py index 37beac886..edde8b29a 100644 --- a/port/PyAssimp/pyassimp/core.py +++ b/port/PyAssimp/pyassimp/core.py @@ -115,6 +115,10 @@ def _init(self, target = None, parent = None): if m.startswith("_"): continue + # We should not be accessing `mPrivate` according to structs.Scene. + if m == 'mPrivate': + continue + if m.startswith('mNum'): if 'm' + m[4:] in dirself: continue # will be processed later on From e2063b3ba6d3bee5b115edc75b00cede072c251a Mon Sep 17 00:00:00 2001 From: Steve M Date: Fri, 17 Mar 2023 22:42:17 -0700 Subject: [PATCH 3/3] Revert to commit 13 May 2014 (08bacc7) Changes were introduced to the binary portion of this file at some point --- test/models/PLY/pond.0.ply | Bin 2171788 -> 2171857 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/test/models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