mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
reload the spec if it's a module, to pick up saved changes from previous edit sessions
This commit is contained in:
parent
2e43204757
commit
249563eef1
@ -19,6 +19,9 @@ class LevelSpec:
|
|||||||
If not passed in, will create a new spec."""
|
If not passed in, will create a new spec."""
|
||||||
newSpec = 0
|
newSpec = 0
|
||||||
if type(spec) is types.ModuleType:
|
if type(spec) is types.ModuleType:
|
||||||
|
if __debug__:
|
||||||
|
# reload the spec module to pick up changes
|
||||||
|
reload(spec)
|
||||||
self.specDict = spec.levelSpec
|
self.specDict = spec.levelSpec
|
||||||
if __debug__:
|
if __debug__:
|
||||||
self.setFilename(spec.__file__)
|
self.setFilename(spec.__file__)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user