summaryrefslogtreecommitdiff
path: root/editor/spatial_editor_gizmos.cpp
AgeCommit message (Collapse)Author
2018-08-11Improvements on the gizmo disabling menu and icon selection bugfixJFonS
2018-08-09New gizmo structure and new gizmo disabling menuJFonS
2018-08-06Respect process order for out of order skeleton bones (fixes GLTF2 import ↵Juan Linietsky
issues).
2018-07-26Reduce unnecessary COW on Vector by make writing explicitHein-Pieter van Braam
This commit makes operator[] on Vector const and adds a write proxy to it. From now on writes to Vectors need to happen through the .write proxy. So for instance: Vector<int> vec; vec.push_back(10); std::cout << vec[0] << std::endl; vec.write[0] = 20; Failing to use the .write proxy will cause a compilation error. In addition COWable datatypes can now embed a CowData pointer to their data. This means that String, CharString, and VMap no longer use or derive from Vector. _ALWAYS_INLINE_ and _FORCE_INLINE_ are now equivalent for debug and non-debug builds. This is a lot faster for Vector in the editor and while running tests. The reason why this difference used to exist is because force-inlined methods used to give a bad debugging experience. After extensive testing with modern compilers this is no longer the case.
2018-07-23Implemented Soft bodyAndreaCatania
- Soft Body Physics node - Soft Body Rendering - Soft body Editor - Soft body importer
2018-07-18Style: Format code with clang-format 6.0.1Rémi Verschelde
2018-07-12Merge pull request #19540 from muiroc/cylinderMax Hilbrunner
Cylinder resource and collision shape (bullet only)
2018-07-01added cylinder shape supportmuiroc
2018-06-28Fix selection in 3D orthogonal viewJFonS
2018-06-13Fix invalid DEFVAL in SpatialEditorGizmo::add_unscaled_billboardRémi Verschelde
Likely added by mistake in #19487. Should fix #19543.
2018-06-13Polished 3D selectionJFonS
2018-05-07Implemented ragdollAndreaCatania
Implementing ragdoll Implementing ragdoll Implementing ragdoll Implementing ragdoll Implementing ragdoll a Implemented implicit hierarchy. Improved Added some physics properties Added bone offset to preserve COM, partially fixed scaling work in progress WIP wip Implemented Joint Gizmos Implemented pin joint joint Implemented all joints
2018-05-03Merge pull request #16358 from JFonS/particlesgizmo_box_fixRémi Verschelde
ParticlesGizmo solid box now follows actual visibility_aabb position.
2018-04-21Fixes logically dead code (Coverity)Crazy-P
Fixes reported logically dead codes by Coverity * image.cpp: Doesn't really need any modification. But to remove the bug report then we have to move the MAX call away from the for loop statement. * rasterizer_gles3.cpp: Removes unnecessary elif condition since it is checked earlier in the function * collada.cpp: If stamement never reached due to macro ERR_CONTINUE does the same. * navigation_mesh.cpp: Variables should always be null - however, also checked for the very same condition in their function call. Leaving this for review (whether the function call is necessary or not) * path_editor_plugin.cpp: If cancel is true, then it should restore the edited value to the original provided. http://docs.godotengine.org/en/3.0/classes/class_editorspatialgizmo.html#class-editorspatialgizmo-commit-handle * spatial_editor_gizmos.cpp: the very condition of i >= 3 is predetermined in the if case right before it. Thus case 1 is always '1' and case 2 is always '-1' * grid_map_editor.cpp: Same as above in spatial_editor_gizmos.cpp * voxel_light_baker.cpp: Same as above in spatial_editor_gizmos.cpp * visual_server.cpp: Same as above in spatial_editor_gizmos.cpp * visual_script_expression.cpp: char '-' is already true in the switch case mechanism. Thus it can never reach to default case. * particles.cpp: Case 'PARAM_MAX' is unreachable due to index checking right before the switch execution. * shader_language.cpp: Invalid index is handled in switch default case. `type < TYPE_FLOAT && type > TYPE_VEC4` -> `(type < TYPE_FLOAT || type > TYPE_VEC4`) Fixes the "always false problem" in TODO comment.
2018-02-14ParticlesGizmo solid box now follows actual visibility_aabb position.JFonS
2018-02-13Merge pull request #16402 from Calinou/fix-camera-gizmoRémi Verschelde
Draw the Camera gizmo more accurately
2018-02-04Draw the Camera gizmo more accuratelyHugo Locurcio
The Camera gizmo no longer looks twice as wide as it actually is. This fixes #16399.
2018-02-02Fix gizmo solid box mesh being added twiceJFonS
2018-01-05Add missing copyright headers and fix formattingRémi Verschelde
Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
2018-01-01Update copyright statements to 2018Rémi Verschelde
Happy new year to the wonderful Godot community!
2017-12-23Fixed joint gizmos orientationsAndreaCatania
2017-12-21-Make capture dependent on a cell size, not subdivision.Juan Linietsky
-Fixed a bug recently introduced when releasing mouse events and calling popups
2017-12-17Cleanup some #if 0'd codeRémi Verschelde
2017-12-14Updated iconsDaniel J. Ramirez
[ciskip]
2017-12-14-Add lightmapperJuan Linietsky
-Fixes to unwrapper (remove degenerates), makes Thekla not crash -Added optional cancel button in EditorProgress -Added function to force processing of events (needed for cancel button)
2017-12-11Merge pull request #13836 from AndreaCatania/scaleRémi Verschelde
Fixed bullet scale on get_transform and joints
2017-12-10Implemented skeleton visibilityAndreaCatania
Removed code visibility code from popup menu
2017-12-09Makes consistent Slider joint GizmoAndreaCatania
2017-12-09Makes consistent 6DOF joint GizmoAndreaCatania
2017-11-17Rename Rect3 to AABB.Ferenc Arn
Fixes #12973.
2017-10-13Added and improved some missing icons, plus some other visual fixes.Daniel J. Ramirez
2017-10-023DEditorGizmo: fix spotlight and camera gizmo & handlePoommetee Ketson
2017-09-20Box selection for MeshInstances and subscene nodes.SaracenOne
2017-09-01Removed ontop property, added a material rendering priority system. Fixes ↵Juan Linietsky
#9935, closes #10135
2017-08-30Merge pull request #10774 from djrm/pr_gizmo_fixesRémi Verschelde
Fixed problem with highlight boxes not updating on translation
2017-08-29Merge pull request #10745 from neikeq/fix-docdata-and-stuffJuan Linietsky
DocData and virtual method type hints fixes
2017-08-29Fixed problem with highlight boxes not updating on translationDaniel J. Ramirez
2017-08-29DocData and type hints fixesIgnacio Etcheverry
- Makes vararg methods automatically use PROPERTY_USAGE_NIL_IS_VARIANT on return types - Completely removes the ":type" suffix for method names. Virtual methods must use the MethodInfo constructors that takes Variant::Type or PropertyHint as the first parameter for the return type (with CLASS_INFO as a helper to get the PropertyInfo). Parameters must use PROPERTY_HINT_RESOURCE_TYPE and hint string. - PROPERTY_USAGE_NIL_IS_VARIANT is no longer needed for parameters, because parameters cannot be void. - Adds missing PROPERTY_USAGE_NIL_IS_VARIANT to virtual and built-in methods that return Variant.
2017-08-28Added missing gizmo icons and fixed ugly looking gizmo icons.Daniel J. Ramirez
2017-08-28Improved directional light arrow and gizmo highlightingDaniel J. Ramirez
2017-08-28Highlight currently selected gizmo.Daniel J. Ramirez
Work with, GIProbe, ReflectionProbe and Particles.
2017-08-27Dead code tells no talesRémi Verschelde
2017-08-27Use HTTPS URL for Godot's website in the headersRémi Verschelde
2017-08-26Cleanup tons of obsolete commented out codeRémi Verschelde
Mostly in EditorNode, dropping some obsolete editor plugins and also a cleanup of ProjectSettings/EditorSettings.
2017-08-26-Massive clean up to gizmosJuan Linietsky
-Make sure handles are always visible (on top) -Fixed instanced scene selection (should work properly now) -Added interpolated camera -Customizable gizmo colors in editor settings
2017-08-24Convert Object::cast_to() to the static versionHein-Pieter van Braam
Currently we rely on some undefined behavior when Object->cast_to() gets called with a Null pointer. This used to work fine with GCC < 6 but newer versions of GCC remove all codepaths in which the this pointer is Null. However, the non-static cast_to() was supposed to be null safe. This patch makes cast_to() Null safe and removes the now redundant Null checks where they existed. It is explained in this article: https://www.viva64.com/en/b/0226/
2017-08-18Fix primitive mesh selection, closes #9210Juan Linietsky
2017-08-10Removes type information from method bindsIgnacio Etcheverry
2017-08-07Makes all Godot API's methods Lower CaseIndah Sylvia
2017-07-15Lots of work on Audio & Physics engine:Juan Linietsky
-Added new 3D stream player node -Added ability for Area to capture sound from streams -Added small features in physics to be able to properly guess distance to areas for sound -Fixed 3D CollisionObject so shapes are added the same as in 2D, directly from children -Fixed KinematicBody API to make it the same as 2D.