Generic snap gizmo to be used for different tools. The Gizmo can be configured initially by the following properties: - `"snap_elements_force"`, `"prev_point"` The following properties can be read as return: - `"location"`, `"normal"`, `"snap_elem_index"` This property can be linked to another (tool_setting.snap_elements): - `"snap_elements"` And this 3 extra utilities have been added: - `ED_gizmotypes_snap_3d_draw_util`, - `ED_gizmotypes_snap_3d_context_get`, - `ED_gizmotypes_snap_3d_update`. Differential Revision: https://developer.blender.org/D7071
65 lines
1.7 KiB
CMake
65 lines
1.7 KiB
CMake
# ***** 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
|
|
../include
|
|
../../blenkernel
|
|
../../blenlib
|
|
../../blentranslation
|
|
../../bmesh
|
|
../../depsgraph
|
|
../../gpu
|
|
../../makesdna
|
|
../../makesrna
|
|
../../windowmanager
|
|
../../../../intern/eigen
|
|
../../../../intern/glew-mx
|
|
../../../../intern/guardedalloc
|
|
)
|
|
|
|
set(INC_SYS
|
|
${GLEW_INCLUDE_PATH}
|
|
)
|
|
|
|
set(SRC
|
|
gizmo_draw_utils.c
|
|
gizmo_geometry.h
|
|
gizmo_library_intern.h
|
|
gizmo_library_presets.c
|
|
gizmo_library_utils.c
|
|
geometry/geom_arrow_gizmo.c
|
|
geometry/geom_cube_gizmo.c
|
|
geometry/geom_dial_gizmo.c
|
|
gizmo_types/arrow3d_gizmo.c
|
|
gizmo_types/blank3d_gizmo.c
|
|
gizmo_types/button2d_gizmo.c
|
|
gizmo_types/cage2d_gizmo.c
|
|
gizmo_types/cage3d_gizmo.c
|
|
gizmo_types/dial3d_gizmo.c
|
|
gizmo_types/move3d_gizmo.c
|
|
gizmo_types/primitive3d_gizmo.c
|
|
gizmo_types/snap3d_gizmo.c
|
|
)
|
|
|
|
set(LIB
|
|
)
|
|
|
|
add_definitions(${GL_DEFINITIONS})
|
|
|
|
blender_add_lib(bf_editor_gizmo_library "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
|