Cleanup: Add `bf_nodes_texture` library

For sake of consistencey with other node tree types, create its own cmake module.
This change helps keep `bf_nodes` focused on  generic nodes files.

Texture nodes are end of life and hopefully for Blender 4.0 they can be removed.
It is not expected that these will see the updates that the other nodes are getting.
This change also helps isolate the end of life files, we may move some texture
specific node tree execution code out of `node_exec` and into a `node_texture_exec` files.

Differential Revision: https://developer.blender.org/D13743
This commit is contained in:
Aaron Carlisle 2022-01-05 21:08:32 -05:00
parent ed9b21098d
commit e6ca0b33e9
Notes: blender-bot 2023-02-14 05:28:01 +01:00
Referenced by issue #98471, cycles render preview fail when changing material color
Referenced by issue #96524, Regression: The Material Preview doesn't show
Referenced by issue #96133, MacOS desktop freeze and crash on 3.1 beta up to 3.2.2 when moving mesh in Cycles Rendered view (Cycles CPU mode)
Referenced by issue #94671, Performance regression with subdivision modifier and enabled scene statistics
Referenced by issue #93979, Knife tool issue : create duplicate vertex  unexpectedly.
2 changed files with 91 additions and 28 deletions

View File

@ -22,6 +22,7 @@ add_subdirectory(composite)
add_subdirectory(function)
add_subdirectory(geometry)
add_subdirectory(shader)
add_subdirectory(texture)
set(INC
.
@ -51,32 +52,6 @@ set(INC
set(SRC
texture/nodes/node_texture_at.c
texture/nodes/node_texture_bricks.c
texture/nodes/node_texture_checker.c
texture/nodes/node_texture_common.c
texture/nodes/node_texture_compose.c
texture/nodes/node_texture_coord.c
texture/nodes/node_texture_curves.c
texture/nodes/node_texture_decompose.c
texture/nodes/node_texture_distance.c
texture/nodes/node_texture_hueSatVal.c
texture/nodes/node_texture_image.c
texture/nodes/node_texture_invert.c
texture/nodes/node_texture_math.c
texture/nodes/node_texture_mixRgb.c
texture/nodes/node_texture_output.c
texture/nodes/node_texture_proc.c
texture/nodes/node_texture_rotate.c
texture/nodes/node_texture_scale.c
texture/nodes/node_texture_texture.c
texture/nodes/node_texture_translate.c
texture/nodes/node_texture_valToNor.c
texture/nodes/node_texture_valToRgb.c
texture/nodes/node_texture_viewer.c
texture/node_texture_tree.c
texture/node_texture_util.c
intern/derived_node_tree.cc
intern/geometry_nodes_eval_log.cc
intern/math_functions.cc
@ -91,8 +66,6 @@ set(SRC
intern/node_util.c
intern/socket_search_link.cc
texture/node_texture_util.h
NOD_common.h
NOD_composite.h
NOD_derived_node_tree.hh
@ -123,6 +96,7 @@ set(LIB
bf_nodes_function
bf_nodes_geometry
bf_nodes_shader
bf_nodes_texture
)
if(WITH_BULLET)

View File

@ -0,0 +1,89 @@
# ***** BEGIN GPL LICENSE BLOCK *****
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# ***** END GPL LICENSE BLOCK *****
set(INC
.
../
../intern
../../editors/include
../../blenkernel
../../blenlib
../../blentranslation
../../depsgraph
../../imbuf
../../makesdna
../../makesrna
../../render
../../windowmanager
../../../../intern/guardedalloc
)
set(SRC
nodes/node_texture_at.c
nodes/node_texture_bricks.c
nodes/node_texture_checker.c
nodes/node_texture_common.c
nodes/node_texture_compose.c
nodes/node_texture_coord.c
nodes/node_texture_curves.c
nodes/node_texture_decompose.c
nodes/node_texture_distance.c
nodes/node_texture_hueSatVal.c
nodes/node_texture_image.c
nodes/node_texture_invert.c
nodes/node_texture_math.c
nodes/node_texture_mixRgb.c
nodes/node_texture_output.c
nodes/node_texture_proc.c
nodes/node_texture_rotate.c
nodes/node_texture_scale.c
nodes/node_texture_texture.c
nodes/node_texture_translate.c
nodes/node_texture_valToNor.c
nodes/node_texture_valToRgb.c
nodes/node_texture_viewer.c
node_texture_tree.c
node_texture_util.c
node_texture_util.h
)
set(LIB
bf_nodes
)
if(WITH_PYTHON)
list(APPEND INC
../../python
)
list(APPEND INC_SYS
${PYTHON_INCLUDE_DIRS}
)
list(APPEND LIB
${PYTHON_LINKFLAGS}
${PYTHON_LIBRARIES}
)
add_definitions(-DWITH_PYTHON)
endif()
if(WITH_INTERNATIONAL)
add_definitions(-DWITH_INTERNATIONAL)
endif()
blender_add_lib(bf_nodes_texture "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")