Exemple #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' )
Exemple #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')
Exemple #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')
Exemple #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' )
Exemple #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' )
Exemple #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')
Exemple #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')