From 8f239acbf819f7e38c080c33327b73dfc3a07493 Mon Sep 17 00:00:00 2001 From: maitag Date: Wed, 9 Oct 2024 08:41:29 +0200 Subject: [PATCH] fixed bug in Element.hx where only used @posY, @sizeY or @pivotY as Float datatype --- CHANGELOG.md | 1 + src/peote/view/Element.hx | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a62033..9d5b5a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/src/peote/view/Element.hx b/src/peote/view/Element.hx index 0d56344..532129d 100644 --- a/src/peote/view/Element.hx +++ b/src/peote/view/Element.hx @@ -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;