Bug 1495 - GraphUI Shape: Only updateMat() if marked dirty once in applyMatToMv() and getMat(*)
Summary: GraphUI Shape: Only updateMat() if marked dirty once in applyMatToMv() and ge...
Status: RESOLVED FIXED
Alias: None
Product: GraphUI
Classification: JogAmp
Component: Core (show other bugs)
Version: 2.6.0
Hardware: All all
: P4 normal
Assignee: Sven Gothel
URL:
Depends on: 1490
Blocks: 805
  Show dependency treegraph
 
Reported: 2024-01-31 11:41 CET by Sven Gothel
Modified: 2024-01-31 12:16 CET (History)
0 users

See Also:
Type: FEATURE
SCM Refs:
03f24c544a70ebecc4e61c48425d361abc34d951 bb32e88ca0e8fa95b7d8503f5881fa256bf95e59
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2024-01-31 11:41:34 CET
It is sufficient to mark the internal iMat dirty when mutating the source values (pos, ..) and calling updateMat() only once when used in applyMatToMv() and getMat(*).

iMatIdent can also be set to true within updateMat() IF neither mutations occured, i.e. no translocation, scale or rotation.
Comment 1 Sven Gothel 2024-01-31 11:44:40 CET
commit 03f24c544a70ebecc4e61c48425d361abc34d951 (HEAD -> jausoft_01)

    Bug 1495: GraphUI Shape: Only updateMat() if marked dirty once in applyMatToMv() and getMat(*)
    
    It is sufficient to mark the internal iMat dirty when mutating the source values (pos, ..) and calling updateMat() only once when used in applyMatToMv() and getMat(*).
    
    iMatIdent can also be set to true within updateMat() IF neither mutations occured, i.e. no translocation, scale or rotation.
Comment 2 Sven Gothel 2024-01-31 12:16:10 CET
commit bb32e88ca0e8fa95b7d8503f5881fa256bf95e59 (HEAD -> jausoft_01)

    Bug 1495: GraphUI Shape: Fix updateMat() API doc