summaryrefslogtreecommitdiff
path: root/scene/2d/tile_map.cpp
AgeCommit message (Collapse)Author
2018-09-27Fix warnings about set but unused variables [-Wunused-but-set-variable]Rémi Verschelde
Fixes the following GCC 5 warnings: ``` drivers/gles2/rasterizer_canvas_gles2.cpp:814:8: warning: variable 'rt_size' set but not used [-Wunused-but-set-variable] drivers/gles2/rasterizer_scene_gles2.cpp:2270:11: warning: variable 'vp_height' set but not used [-Wunused-but-set-variable] drivers/gles2/rasterizer_scene_gles2.cpp:2673:22: warning: variable 'e' set but not used [-Wunused-but-set-variable] drivers/gles2/rasterizer_scene_gles2.cpp:715:7: warning: variable 'no_cull' set but not used [-Wunused-but-set-variable] drivers/gles2/shader_gles2.cpp:693:14: warning: variable 'cc' set but not used [-Wunused-but-set-variable] drivers/gles3/rasterizer_canvas_gles3.cpp:1226:8: warning: variable 'rt_size' set but not used [-Wunused-but-set-variable] drivers/gles3/rasterizer_scene_gles3.cpp:3039:10: warning: variable 'contrib' set but not used [-Wunused-but-set-variable] drivers/gles3/rasterizer_scene_gles3.cpp:4504:32: warning: variable 'vp_height' set but not used [-Wunused-but-set-variable] editor/editor_inspector.cpp:272:9: warning: variable 'guide_color' set but not used [-Wunused-but-set-variable] editor/editor_themes.cpp:1067:14: warning: variable 'alpha3' set but not used [-Wunused-but-set-variable] editor/editor_themes.cpp:263:8: warning: variable 'script_bg_color' set but not used [-Wunused-but-set-variable] editor/plugins/collision_shape_2d_editor_plugin.cpp:326:11: warning: variable 'cpoint' set but not used [-Wunused-but-set-variable] editor/plugins/mesh_editor_plugin.cpp:72:9: warning: variable 'size' set but not used [-Wunused-but-set-variable] editor/plugins/shader_editor_plugin.cpp:471:12: warning: variable 'mpos' set but not used [-Wunused-but-set-variable] editor/plugins/shader_editor_plugin.cpp:89:8: warning: variable 'basetype_color' set but not used [-Wunused-but-set-variable] editor/plugins/shader_editor_plugin.cpp:90:8: warning: variable 'type_color' set but not used [-Wunused-but-set-variable] editor/plugins/shader_editor_plugin.cpp:92:8: warning: variable 'string_color' set but not used [-Wunused-but-set-variable] modules/visual_script/visual_script_editor.cpp:2521:7: warning: variable 'seq_connect' set but not used [-Wunused-but-set-variable] platform/android/export/export.cpp:580:12: warning: variable 'styles_count' set but not used [-Wunused-but-set-variable] platform/android/export/export.cpp:584:12: warning: variable 'styles_offset' set but not used [-Wunused-but-set-variable] platform/osx/export/export.cpp:464:9: warning: variable 'zerr' set but not used [-Wunused-but-set-variable] scene/2d/tile_map.cpp:260:10: warning: variable 'tcenter' set but not used [-Wunused-but-set-variable] scene/3d/light.cpp:166:7: warning: variable 'editor_ok' set but not used [-Wunused-but-set-variable] scene/3d/navigation.cpp:566:11: warning: variable 'closest_navmesh' set but not used [-Wunused-but-set-variable] scene/gui/rich_text_label.cpp:869:8: warning: variable 'size' set but not used [-Wunused-but-set-variable] scene/main/viewport.cpp:705:14: warning: variable 'xform' set but not used [-Wunused-but-set-variable] scene/main/viewport.cpp:706:8: warning: variable 'ss' set but not used [-Wunused-but-set-variable] scene/main/viewport.cpp:726:14: warning: variable 'xform' set but not used [-Wunused-but-set-variable] scene/main/viewport.cpp:727:8: warning: variable 'ss' set but not used [-Wunused-but-set-variable] scene/resources/material.cpp:430:7: warning: variable 'using_world' set but not used [-Wunused-but-set-variable] servers/visual/shader_language.cpp:2026:7: warning: variable 'all_const' set but not used [-Wunused-but-set-variable] servers/visual/visual_server_scene.cpp:1383:28: warning: variable 'z_max_cam' set but not used [-Wunused-but-set-variable] ``` Also fixes two [-Wunused-value] warnings: ``` scene/gui/text_edit.cpp:4405:20: warning: statement has no effect [-Wunused-value] servers/visual/visual_server_scene.cpp:905:48: warning: value computed is not used [-Wunused-value] ``` Some of those are bugs and need further work, they are identified with `// FIXME` comments.
2018-09-12Make core/ includes absolute, remove subfolders from include pathRémi Verschelde
This allows more consistency in the manner we include core headers, where previously there would be a mix of absolute, relative and include path-dependent includes.
2018-08-29Unexpose TileMap set_celldMarcelo Fernandez
2018-08-13Merge pull request #20587 from groud/fix_2deditor_scrollable_zoneRémi Verschelde
Fixes bugs on the 2D editor scrollable area
2018-08-09New TileSet EditorMAriano Javier Suligoy
2018-07-30Fixes bugs on the 2D editor scrollable areagroud
2018-07-26doc: Sync classref with current sourceRémi Verschelde
Fix various missing arguments in bindings.
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-22Defer TileMap::update_dirty_quadrants once again.Pieter-Jan Briers
This fixes #20323. #11077 is now technically re-broken, but you can now call update_dirty_quadrants as workaround.
2018-07-03Merge pull request #18634 from groud/fix_control_child_of_node2dMax Hilbrunner
Fixes the bad calculation of margin & anchors when child of Node2D
2018-06-26Merge pull request #19164 from marcelofg55/tilemap_undo2Rémi Verschelde
Improve TileMap undo operations, second try
2018-06-26Optimize _recreate_quadrantsMarcelo Fernandez
2018-06-08Merge pull request #19343 from bojidar-bg/x-fix-tilemap-shape-rotationRémi Verschelde
Fix bugs related to bad handling of rotated/translated shapes in tilemap
2018-06-07Fixes the bad calculation of margin & anchors when child of Node2Dgroud
2018-06-03Fix bugs related to bad handling of rotated/translated shapes in tilemapBojidar Marinov
Fixup #18529 and #12870
2018-06-02Added autotile overrideJames Beedie
2018-05-29Improve TileMap undo operations, second tryMarcelo Fernandez
2018-05-17Restore support for minimal 3x3 autotile setsisaacremnant
2018-05-16Merge pull request #15909 from authenticate/tilemap_fixMariano Javier Suligoy
TileMap Navigation Fixes
2018-05-15Fixing a bug where tilemap navigation would not be accurate after a tilemap ↵James
exits and then re-enters the tree. Fixing a bug where deleting a tile and then querying navigation would result in an incorrect path if both happened within the same frame.
2018-05-04Allow uncommon bitmask for autotile - Fixes #16511mateusak
Removes some conditions that were there to create compatibility from 2X2 to 3X3. Further dissociates 2X2 and 3X3 but adds more flexibility to 3X3.
2018-05-01Adds z-index properties to TileSets.Pieter-Jan Briers
2018-04-03Remove the selection rect for nodes that do not require itGilles Roudiere
2018-03-30Implement missing navgiation polygon debugging in tilemapBenedikt Bär
2018-03-13Merge pull request #16971 from Noshyaar/tilemapRémi Verschelde
TileMap: add fix_invalid_tiles
2018-03-11Update TileMap when its TileSet changesShyRed
Make TileMap monitor its TileSet for changes and emit a signal when the TileSet changes. This makes the editor update and show the updated version of the TileSet.
2018-02-24TileMap: add fix_invalid_tilesPoommetee Ketson
2018-02-20Tileset Editor ImprovementDamar Indra
2018-01-12Bind many more properties to scriptsBojidar Marinov
Notable potentially breaking changes: - PROPERTY_USAGE_NOEDITOR is now PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_NETWORK, without PROPERTY_USAGE_INTERNAL - Some properties were renamed, and sometimes even shadowed by new ones - New getter methods (some virtual) were added
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-04Merge pull request #15191 from Jerome67000/z_renamingRémi Verschelde
renames "z" Node2D property to "z_index"
2018-01-03#15078 renamed "z" -> "z_index" property in Node2DJerome67000
2018-01-01Update copyright statements to 2018Rémi Verschelde
Happy new year to the wonderful Godot community!
2017-12-25Add missing parameter namesPoommetee Ketson
2017-12-16Merge pull request #13991 from CyanBlob/masterRémi Verschelde
TileMap: Add update_bitmask_region(2), expose update_bitmask_area(1) …
2017-12-16TileMap: Add update_bitmask_region(2), expose update_bitmask_area(1) and ↵Andrew Thomas
update_bitmask_region(2) to GDscript
2017-12-15Renamed navmesh/poly_create to navmesh/poly_add since no navmesh is created.Nathan Warden
2017-12-10TileMap: Drop unused center_x/center_y booleansRémi Verschelde
Two years later they are still unused and we do not know their intend use case, so tschüss. Closes #2513.
2017-12-09Merge pull request #14454 from CyanBlob/TileMapRémi Verschelde
Convert tilemap format in get_tile_data()
2017-12-09Convert tilemap format in get_tile_data()Andrew Thomas
2017-12-08Fixes TileMap occluder offsets.PJB3005
This is NOT related to #14388! This fixes a graphical bug where the light occluders used by tilemaps weren't getting offset anymore, this they'd be positioned incorrectly. I tried on all 3 tilemap positioning modes and it seemed to work on every one.
2017-12-02TileMap FixesMariano Suligoy
2017-11-27Fix displacement for centered tilemapsMatthias Hoelzl
- Fixes tile and collision placement for tilemaps with `tile_origin` set to `TILE_ORIGIN_CENTER`. - Also fixes a bug in the offset computation for collision shapes with `flip_v` flag set to true if `tile_origin` is `TILE_ORIGIN_BOTTOM_LEFT`.
2017-11-24Fix TileMap and TileSet ClassDB bindingsRuslan Mustakov
2017-11-20Implement auto-tilingMariano Suligoy
2017-11-19Rework the canvas_item API for further improves to the canvas item editorGilles Roudiere
2017-11-15Fixing tilemap rotation for non top-left tiles.Vito
2017-11-10Disabled filter clip by default and made it optional, fixes #12368, likely ↵Juan Linietsky
others too
2017-11-09Reworked how servers preallocate RIDs, should fix #10970Juan Linietsky
2017-09-20Rename pos to position in user facing methods and variablesletheed
Rename user facing methods and variables as well as the corresponding C++ methods according to the folloming changes: * pos -> position * rot -> rotation * loc -> location C++ variables are left as is.