From 05ccf7237db743830443ac8fb6997dfd0ffef14c Mon Sep 17 00:00:00 2001 From: "Asad M. Zaman" Date: Thu, 28 Aug 2008 23:49:33 +0000 Subject: [PATCH] this allows rebinding of classes from level-editor --- direct/src/showbase/Finder.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/direct/src/showbase/Finder.py b/direct/src/showbase/Finder.py index ea263f0ec6..556c9a4793 100644 --- a/direct/src/showbase/Finder.py +++ b/direct/src/showbase/Finder.py @@ -184,6 +184,10 @@ def replaceCRFunc(replaceFuncList): base.cr except: return + # masad: Gyedo's fake cr causes a crash in followingreplaceMethod on rebinding, so + # I throw in the isFake check. I still think the fake cr should be eliminated. + if hasattr(base.cr,'isFake'): + return for oldFunc, funcName, newFunc in replaceFuncList: if base.cr.replaceMethod(oldFunc, newFunc): print ('replaced DistributedObject function: %s' % funcName)