Commit Graph

39815 Commits

Author SHA1 Message Date
Campbell Barton
bfd0ceb4e0 fix own error with updating edge tagging (seams didnt work) 2013-06-24 05:26:42 +00:00
Campbell Barton
69d1e8187c make behavior for edge tagging more predictable.
last-picked edge is always selected+active.
2013-06-24 05:24:27 +00:00
Campbell Barton
781184562b add api calls for BM_mesh_active_vert/edge_get.
inspecting the edit-selection inline was cumbersome.
2013-06-24 04:51:56 +00:00
Campbell Barton
bc79e226ee de-duplicate ED_mesh_active_dvert_* functions.
not to devs - please don't just copy static functions around, make them api calls and add to headers.
2013-06-24 04:41:03 +00:00
Mitchell Stokes
dbec3af994 BGE: Fix for [#35737] "Action actuator in property mode don't work with values lower then 1" reported by HG1.
IPOs were only set as "initialized" if the current time was greater than 0.0, which is why negative values weren't working.
2013-06-24 04:24:01 +00:00
Daniel Stokes
23c0e0d996 BGE: fix [#35811] Blenderplayer crash on closing if file saved with an actual version.
Making sure free_nodesystem() is called before BLO_blendfiledata_free() fixes the problem. free_nodesystem() relies on blendfiledata.
2013-06-24 04:21:17 +00:00
Campbell Barton
423ee06625 use booleans for bpath api. 2013-06-24 03:06:32 +00:00
Campbell Barton
0f48028173 fix [#35825] "Find missing files" seems to search for files which are not missing
Made finding paths for files that exist optional (and off by default), since its handy for relocating projects.
2013-06-24 02:57:06 +00:00
Campbell Barton
8ce83150a7 remove unused var in view3d_panel_vgroup 2013-06-24 02:30:09 +00:00
Brecht Van Lommel
8acdc0515d Fix #35847: cycles group nodes did not work well exposing inputs like normal or
texture coordinate that should automatically use the default normal or texture
coordinate appropriate for that node, rather than some fixed value specified by
the user.
2013-06-23 19:24:32 +00:00
Gaia Clary
969a076b02 Changed text alignment to better match old layout behaviour 2013-06-23 18:21:26 +00:00
Gaia Clary
29ea84015c readded 'old' layout due to user complains 2013-06-23 18:00:14 +00:00
Gaia Clary
9b6f05e3ad Clarify tooltip for Weight paint tool 2013-06-23 17:27:50 +00:00
Campbell Barton
23c053748d add missing notifiers for mask tools, some wouldn't refresh the compositor. 2013-06-23 15:48:00 +00:00
Gaia Clary
70fd2320c8 Added polished Vertex Weights Panel (properties sidebar) 2013-06-23 15:37:08 +00:00
Campbell Barton
3a1082b359 tweak comparisons for connect pair in rare case the value == CONNECT_EPS. 2013-06-23 15:00:12 +00:00
Brecht Van Lommel
b9ffdb5cfd Workaround visual studio 2012 compiler bug compiling large RNA_blender_cpp.h, removed
the comments/descriptions for now to make it smaller. Maybe eventual solution would be
to split this up but for now it's not a public API yet anyway.
2013-06-23 13:59:06 +00:00
Brecht Van Lommel
4a34d86f32 Fix #35848: render crash in background mode due to missing G.main. 2013-06-23 13:58:59 +00:00
Campbell Barton
dc12dd23f6 fix for connect_pair cutting across triangle verts from edges. 2013-06-23 09:50:10 +00:00
Campbell Barton
adba695209 remove vec_rot_to_mat3(), replace with axis_angle_normalized_to_mat3() 2013-06-22 23:58:52 +00:00
Campbell Barton
80ffe6f9b6 add strict conversion flags for mask_rasterize and reduce some signed/unsigned comparisons. 2013-06-22 23:37:45 +00:00
Campbell Barton
1a50be2d94 Make edgehash and ghash use the same limit for expanding buckets, r26206 changed ghash.
double checked and r26206 does indeed give a speedup, so change for edgehash too.
2013-06-22 22:30:56 +00:00
Campbell Barton
1fb980e7df reduce sign conversion comparisons for smallhash and tweak warnings elsewhere. 2013-06-22 20:20:06 +00:00
Dalai Felinto
d23bf09712 build fix for old gccs (after rev.57620)
enabling the new pragmas only when gcc >= 4.6
gcc 4.2.1 here (OSX)
2013-06-22 20:00:17 +00:00
Campbell Barton
e4bb913510 Extend existing editmesh connect tool so it can connect across multiple faces.
only use this when 2 vertices are selected, otherwise use the same behavior as before.

This works a little like a fast knife tool, but it only cuts straight lines and doesnt depend on the view-port.

Examples:
- http://www.graphicall.org/ftp/ideasman42/mesh_connect_pair.png
- http://www.graphicall.org/ftp/ideasman42/mesh_connect_pair_curve.png
2013-06-22 17:25:02 +00:00
Inês Almeida
5d28a6bb58 Minor code cleanup in 'source/gameengine/GamePlayer/ghost/GPG_Application.cpp'.
Removed a function call with no effect and merged two other lines for legibility.
This commit was reviewed by Moguri.
2013-06-22 09:04:33 +00:00
Dalai Felinto
c72653cca0 BGE bugfix/patch "[#26075] game anaglyph colors are inverted" by Juha Maki-Kanto (kanttori)
Later I will try to find when this bug was introduced. But it's definitively broken in trunk.
2013-06-22 08:04:02 +00:00
Mitchell Stokes
92aca19eda BGE: Fix for [#35815] "makeScreenshot() relative path not working in Blenderplayer" reported by HG1.
Someone forgot to add relative path expansion (BLI_path_abs) to the Blenderplayer...
2013-06-22 05:27:28 +00:00
Brecht Van Lommel
2df82a2a2b Code cleanup: fix some vs2012 compiler warnings 2013-06-21 12:33:19 +00:00
Daniel Stokes
d6f38e4e01 BGE: fix [#32775] LibFree crashing
Used the engine's RemoveScene (which ultimately calls the converter's RemoveScene) instead of the converter's RemoveScene when the converter free a blend file. This handles the scene removal in a safer fashion and solves the crash described in part 2 of the bug report. Part 1 no longer appears to cause a crash.
2013-06-21 06:56:43 +00:00
Antony Riakiotakis
e101b043e1 Default paint context will be image paint if object is not in a paint mode. It solves not being able to tweak textures in the new texture context button system if an image editor is set up for painting and active object is in object mode. 2013-06-20 23:20:33 +00:00
Mitchell Stokes
d3fc2bd95b BGE: Fix for [#33163] "Text Font Bug" reported and fixed by HG1.
The embedded player was calling glPolygonMode(GL_FRONT_AND_BACK, GL_FILL) before rendering font objects, but someone forgot to add this to the Blenderplayer.
2013-06-20 22:37:55 +00:00
Campbell Barton
2efea8cf03 reduce sign comparisons for ghash and add more strict warnings for gcc. 2013-06-20 19:39:29 +00:00
Campbell Barton
c721d82f25 move sort from vert/edge/face into mesh menu only (sorting isn't such a common operation).
correct own recently added assert.
2013-06-20 19:09:18 +00:00
Campbell Barton
2dc88ca338 support proportional editing with x-mirror enabled. 2013-06-20 18:19:42 +00:00
Bastien Montagne
e85a39b747 Sequencer: fix names when adding several video (or audio) files at once (all strips were getting the same, annoying ;) ). 2013-06-20 13:52:58 +00:00
Sergey Sharybin
f35264706a Construct orco UV layer for curve when applying constructive modifier
Also construct orco uv layer when converting curve to a mesh.

This makes it possible to preserve automatically generated coordinates
("use uv for mapping" option) when using constructive modifiers or
converting curve to the mesh.

With cycles nothing special is needed to preserve texture mapping
after such operations, in blender internal you'll need to change
texture mapping from Generated to UV.

This feature is useful on it's own and also would help in potential
switch 3d viewport to always use DM to draw objects, which would
help making drawing more thread-safe.
2013-06-20 13:27:48 +00:00
Campbell Barton
7021251043 transform: 2d option for proportional editmode,
Uses for view orientation for distance calculation, can give nicer results when you dont want twisting caused by changes in depth.
2013-06-20 13:24:07 +00:00
Brecht Van Lommel
a92468c7d7 Fix #35807: blender internal motion blur render without antialiasing would
give black speckles (self intersection errors) in raytraced shadows.

Motion blur does some extra offsets for free antialiasing in the motion blur
samples, but did not take them into account everywhere.
2013-06-20 11:47:09 +00:00
Sergey Sharybin
a384612cce Fix #35439: Render Border have weird influence on compositing
Issue was caused by render result passing to a compositor
was having a resolution of border when using a camera border
in cases there's no Render Layer nodes.

Made it so resolution in which compositor works does not
depend on whether Render Layers present or not.
2013-06-20 11:32:08 +00:00
Campbell Barton
aea5114633 editmesh draw optimizations: use customdata offsets rather then per-element lookups. 2013-06-20 11:18:19 +00:00
Sergey Sharybin
b843bebb15 Fix crash in when dding subsurf modifier to curves
Issue was caused by svn rev57566 which didn't take into
account the fact that curves could have dm of type CCGDM
and in this case CDDM_calc_normals_mapping_ex would fail
dramatically.

Added a check around normals update call bout whether
DM is CDDM or not. The same happens in mesh's modifier
stack.
2013-06-20 11:00:35 +00:00
Campbell Barton
972c01ac0c remove NULL checks for return values from EDBM_***_at_index calls. 2013-06-20 07:00:57 +00:00
Daniel Stokes
62c6ee2c55 BGE: fix [#35447] LibLoad Meshes and Scenes causes crash of blender
KX_BlenderSceneConverter's destructor freed the contents of several std::vectors without removing those contents from the vectors. Later these vectors are iterated through. Making sure the vectors get cleared solves this problem.
2013-06-20 06:17:28 +00:00
Mitchell Stokes
1e64732d52 BGE: Fix for [#34781] "bge.texture.ImageRender does not show Font object" reported by Monster.
This fix is mostly based off of HG1's patch from the bug report, which had ImageRender::Render() call KX_KetsjiEngine::RenderFonts(). However, I have moved RenderFonts() from KX_KetsjiEngine to KX_Scene where all of the other font and rendering functions are. The real fix for this mess would be to not have ImageRender::Render() have so much duplicate code from KX_KetsjiEngine::Render(), but that's a code cleanup problem for another day.
2013-06-20 03:50:02 +00:00
Mitchell Stokes
4eded6dbdc BGE: Fix for [#35479] "OSKEY (Command Key on Mac) not working" reported by Mike Pan (mpan3).
The OSKEY was never added to the game engine, so it didn't recognize it.
2013-06-20 03:22:55 +00:00
Campbell Barton
c00b408052 Snap to Symmetry (editmesh tool)
Update from a script I had in 2.4x, useful if you have mesh data which is _almost_ symmetrical,
there was no good way to automatically make the minor adjustments to make the mesh fully symmetrical.

Options for...
- symmetry-axis.
- blending between the +/- side.
- center mid verts.

Access from Mesh menu.
2013-06-19 21:35:06 +00:00
Campbell Barton
1ed8343d6d add axis option to EDBM_verts_mirror_cache_begin 2013-06-19 21:23:00 +00:00
Campbell Barton
c33093ac08 BKE_bmbvh_find_vert_closest: very stupid & old bug, it was comparing hit locations incorrectly so that only the first hit was valid.
This isn't noticeable for small distances, otherwise it gives bad results.
2013-06-19 20:43:38 +00:00
Campbell Barton
93af050824 correct editmesh BKE_bmbvh_find_vert_closest(), distances are expected to be squared. 2013-06-19 20:11:28 +00:00