Skip to content

Commit

Permalink
fixed bug in Element.hx where only used @posy, @sizey or @Pivoty as F…
Browse files Browse the repository at this point in the history
…loat datatype
  • Loading branch information
maitag committed Oct 9, 2024
1 parent 1bfa53b commit 8f239ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Changelog
* Added `dispose()` for 'Texture' to free opengl-ram
* Added feature that the texture-layer identifier can be optional now while set, add or remove textures to a `Program`
* Fixed (partial) old glitch with lanugage-server cache and macros, where into this case the Buffer-macro checks that the type was not already generated
* Fixed Element-generation into case where only use of @posY, @sizeY or @pivotY as alternative Float Datatype


1.02 (06/12/2024)
Expand Down
6 changes: 3 additions & 3 deletions src/peote/view/Element.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1542,9 +1542,9 @@ class ElementImpl
var buff_size_instanced:Int = Std.int(
timers.length * 8
+ 4 * (conf.rotation.n + conf.zIndex.n)
+ ((conf.posX.isAltType) ? 4:2) * (conf.posX.n + conf.posY.n)
+ ((conf.sizeX.isAltType) ? 4:2) * (conf.sizeX.n + conf.sizeY.n)
+ ((conf.pivotX.isAltType) ? 4:2) * (conf.pivotX.n + conf.pivotY.n)
+ ((conf.posX.isAltType || conf.posY.isAltType) ? 4:2) * (conf.posX.n + conf.posY.n)
+ ((conf.sizeX.isAltType || conf.sizeY.isAltType) ? 4:2) * (conf.sizeX.n + conf.sizeY.n)
+ ((conf.pivotX.isAltType || conf.pivotY.isAltType) ? 4:2) * (conf.pivotX.n + conf.pivotY.n)
);
for (c in conf.color) buff_size_instanced += c.n * 4;

Expand Down

0 comments on commit 8f239ac

Please sign in to comment.