[SOLVED] Need help with TriPlanar texturing on a box


#21

Also, should we call clearCollisionData after resizing MBox?

Probably after this line?


#22

Yeah, probably. No harm clearing it, I guess.


#23

@pspeed, I made a new PR for this:

It is already tested.


#24

Someday, someone should fix JME serialization to work with protected/private constructors. Of course, that probably requires special dispensation in Java 11… but so be it.


#25

Should I fill an issue for this on JME GitHub page?


#26

I don’t know… wouldn’t hurt to keep track of it, I guess.


#27

As long as the module definition allows for reflection access, it should not be an issue.


#28

I guess Paul means that it is ugly to impose a public NO-Arg Constructor just for sake of serialization. :slightly_smiling_face:


#29

Hmm… I see what you are saying. I have done it in the past, I will check how I did it.


#30

You just have to use reflection to grab the no-arg constructor and make setAccessible(true) or whatever.

…which just requires special permissions in newer Java, I guess.


#31

I made a new thread for it. We can continue the discussion about it there: