Closed capdevon closed 1 month ago
I don't know would be easier to parse the file with StringTokenizer or something. But I think the easiest fix is to set FloatArray as one of the types. It just needs to be before Float (startsWith...), need to comment this in code. Do we have editor type for float array...
Hi guys, the
MorphWeights
parameter is aFloatArray
not aFloat
.See PBRLighting.j3md
Its representation in the Options tab of the Material Editor is wrong.
The problem should be caused by the incorrect
defLine.startsWith(string)
anddefLine.replaceFirst()
algorithm whenstring = "Float"
and defLine starts withFloatArray
:https://github.com/jMonkeyEngine/sdk/blob/master/jme3-materialeditor/src/com/jme3/gde/materials/EditableMaterialFile.java#L243
Output: MaterialProperty [type=Float, name=Array ShadowMapSize, value=]