Пример #1
0
	def acceptAssetFile(self, filePath):
		if not os.path.isfile( filePath ): return False
		name, ext = os.path.splitext( filePath )
		if ext == '.particle':
			return _MOCK.checkSerializationFile( filePath, 'mock.ParticleSystemConfig' )
		elif ext == '.particle_simple':
			return _MOCK.checkSerializationFile( filePath, 'mock.SimpleParticleSystemConfig' )
Пример #2
0
 def acceptAssetFile(self, filePath):
     if not os.path.isfile(filePath): return False
     name, ext = os.path.splitext(filePath)
     if ext == '.particle':
         return _MOCK.checkSerializationFile(filePath,
                                             'mock.ParticleSystemConfig')
     elif ext == '.particle_simple':
         return _MOCK.checkSerializationFile(
             filePath, 'mock.SimpleParticleSystemConfig')
Пример #3
0
 def acceptAssetFile(self, filePath):
     if not os.path.isfile(filePath): return False
     name, ext = os.path.splitext(filePath)
     if not ext in ['.deck2d']: return False
     return _MOCK.checkSerializationFile(filePath, 'mock.Deck2DPack')
Пример #4
0
	def acceptAssetFile(self, filePath):
		if not os.path.isfile( filePath ): return False
		name, ext = os.path.splitext( filePath )
		if not ext in [ '.deck2d' ]: return False
		return _MOCK.checkSerializationFile( filePath, 'mock.Deck2DPack' )
Пример #5
0
	def acceptAssetFile(self, filePath):
		if not os.path.isfile( filePath ): return False
		name, ext = os.path.splitext( filePath )
		if not ext in [ '.render_target' ]: return False
		return _MOCK.checkSerializationFile( filePath, 'mock.RenderTargetTexture' )
Пример #6
0
 def acceptAssetFile(self, filePath):
     if not os.path.isfile(filePath): return False
     name, ext = os.path.splitext(filePath)
     if not ext in ['.render_target']: return False
     return _MOCK.checkSerializationFile(filePath,
                                         'mock.RenderTargetTexture')
Пример #7
0
 def acceptAssetFile(self, filePath):
     if not os.path.isfile(filePath): return False
     name, ext = os.path.splitext(filePath)
     if not ext in ['.color_grading']: return False
     return _MOCK.checkSerializationFile(filePath,
                                         'mock.ColorGradingConfig')