Some weird stuff has been happening when I try to load
A deleted model can still be loaded
Steps to reproduce:
- Make an empty directory
- Export a file called
model.fbxinto the directory
- Run a python script from that directory that loads
- Run the script again. The model will still be loaded.
Script for convenience:
from direct.showbase.ShowBase import ShowBase class App(ShowBase): def __init__(self): super().__init__() model = self.loader.loadModel('model.fbx') model.reparentTo(self.render) self.disableMouse() self.camera.setPos(0, -700, 0) # Makes the 100x scale object visible App().run()
Most of the time, the models will come in at 100x scale, but sometimes they don’t, depending on what directory they’re in. I haven’t managed to reproduce this yet.
I’m using Ubuntu 18.04 64-bit, python 3.7.1, panda3d 1.10.0.