diff options
Diffstat (limited to 'modules/tinyexr')
| -rw-r--r-- | modules/tinyexr/SCsub | 4 | ||||
| -rw-r--r-- | modules/tinyexr/config.py | 3 | ||||
| -rw-r--r-- | modules/tinyexr/image_loader_tinyexr.cpp | 6 | ||||
| -rw-r--r-- | modules/tinyexr/register_types.cpp | 4 | 
4 files changed, 9 insertions, 8 deletions
diff --git a/modules/tinyexr/SCsub b/modules/tinyexr/SCsub index 97f9797b58..e7fd44fabd 100644 --- a/modules/tinyexr/SCsub +++ b/modules/tinyexr/SCsub @@ -1,7 +1,7 @@  #!/usr/bin/env python -Import('env') -Import('env_modules') +Import("env") +Import("env_modules")  env_tinyexr = env_modules.Clone() diff --git a/modules/tinyexr/config.py b/modules/tinyexr/config.py index 098f1eafa9..53b8f2f2e3 100644 --- a/modules/tinyexr/config.py +++ b/modules/tinyexr/config.py @@ -1,5 +1,6 @@  def can_build(env, platform): -    return env['tools'] +    return env["tools"] +  def configure(env):      pass diff --git a/modules/tinyexr/image_loader_tinyexr.cpp b/modules/tinyexr/image_loader_tinyexr.cpp index 41938f5b42..1c0f3cd03e 100644 --- a/modules/tinyexr/image_loader_tinyexr.cpp +++ b/modules/tinyexr/image_loader_tinyexr.cpp @@ -56,7 +56,7 @@ Error ImageLoaderTinyEXR::load_image(Ref<Image> p_image, FileAccess *f, bool p_f  	EXRVersion exr_version;  	EXRImage exr_image;  	EXRHeader exr_header; -	const char *err = NULL; +	const char *err = nullptr;  	InitEXRHeader(&exr_header); @@ -194,7 +194,7 @@ Error ImageLoaderTinyEXR::load_image(Ref<Image> p_image, FileAccess *f, bool p_f  			const float *r_channel_start = reinterpret_cast<const float *>(tile.images[idxR]);  			const float *g_channel_start = reinterpret_cast<const float *>(tile.images[idxG]);  			const float *b_channel_start = reinterpret_cast<const float *>(tile.images[idxB]); -			const float *a_channel_start = NULL; +			const float *a_channel_start = nullptr;  			if (idxA != -1) {  				a_channel_start = reinterpret_cast<const float *>(tile.images[idxA]); @@ -206,7 +206,7 @@ Error ImageLoaderTinyEXR::load_image(Ref<Image> p_image, FileAccess *f, bool p_f  				const float *r_channel = r_channel_start + y * tile_width;  				const float *g_channel = g_channel_start + y * tile_width;  				const float *b_channel = b_channel_start + y * tile_width; -				const float *a_channel = NULL; +				const float *a_channel = nullptr;  				if (a_channel_start) {  					a_channel = a_channel_start + y * tile_width; diff --git a/modules/tinyexr/register_types.cpp b/modules/tinyexr/register_types.cpp index d8529fd893..af05a411e1 100644 --- a/modules/tinyexr/register_types.cpp +++ b/modules/tinyexr/register_types.cpp @@ -33,7 +33,7 @@  #include "image_loader_tinyexr.h"  #include "image_saver_tinyexr.h" -static ImageLoaderTinyEXR *image_loader_tinyexr = NULL; +static ImageLoaderTinyEXR *image_loader_tinyexr = nullptr;  void register_tinyexr_types() { @@ -47,5 +47,5 @@ void unregister_tinyexr_types() {  	memdelete(image_loader_tinyexr); -	Image::save_exr_func = NULL; +	Image::save_exr_func = nullptr;  }  |