f3d
f3d copied to clipboard
Cant set window name when debug
Describe the bug When I configure the solution to “release”,I can change the name of window by using setWindowName.And cant do same things when the solution is configured to "debug" , the window name has changed,but not the name I wanted and the new name of window is just a bunch of garbled code
To Reproduce Here is my simple test code:
if __name__ == '__main__':
engine = f3d.engine(f3d.window.NATIVE)
window:f3d.window = engine.getWindow()
window.setWindowName("test")
interactor:f3d.interactor = engine.getInteractor()
interactor.start()
Expected behavior can set window name in any mode
System Information:
- OS: Windows 10
Unable to reproduce:
- build F3D in release
- PYTHONPATH=/home/glow/dev/f3d/build/lib python ./a.py
- window is named test
a.py content:
[glow@frollo ~/dev/f3d/build]$ cat a.py
import f3d
engine = f3d.engine(f3d.window.NATIVE)
window:f3d.window = engine.getWindow()
window.setWindowName("test")
interactor:f3d.interactor = engine.getInteractor()
interactor.start()
Maybe it's specific to windows
Good point, should be checked.
I'm not able to load f3d module on windows, no idea if the PYTHONPATH is set is correct. Did you try @Meakk ?
No, but it does work in the CI
@GitCodeBoy please test with the provided code and reopen if needed.