Commit Graph

31120 Commits

Author SHA1 Message Date
0cabb2fa6a Fix related to #30928: missing image editor update when changing active image
texture node.
2012-04-13 09:31:37 +00:00
1add07821b fix [#30925] successful import of keyconfig dependant on current object context?
revert r34885,

The hack was to fix poselib UI but is REALLY BAD - don't modify properties when accessing them.

This bug must be fixed some other way.
2012-04-13 09:25:50 +00:00
5b55934c79 Fix part of #30934: save as image in image editor did not set proper defaults
for options like compression.
2012-04-13 09:20:59 +00:00
6046500ee5 - startup.blend's temp dir was pointing to sergeys user dir, now point to /tmp
- fix error in ctodata.py (was adding dummy bit)
- make UV hide from last commit more readable.
2012-04-13 08:18:54 +00:00
05bdc46641 fix [#30923] Hide Unselected in the UV/Image editor does nothing 2012-04-13 07:18:26 +00:00
58993c3f37 bmesh - UV editor: check if faces are visible before hiding them (was done before bmesh merge). 2012-04-13 06:54:37 +00:00
b2667970d2 style cleanup: uv editor 2012-04-13 06:33:59 +00:00
60d3b8f27b Fix loading external MDisps, BMesh merge bug.
* When converting mfaces to mpolys, load external MDisp data in, add
  CustomDataExternal struct to loopdata if needed.

* Fix multires modifier's filepath RNA functions to use ldata rather
  than fdata.
2012-04-13 05:39:27 +00:00
e9358a3806 bmesh api changes:
- remove recently added BM_mesh_select_flush_strip(), functions purpose wasn't clear.
- add BM_mesh_elem_hflag_disable_test(), BM_mesh_elem_hflag_enable_test()
  to match existing BM_mesh_elem_hflag_enable/disable_all(), these take a hflag to test before editing each element.
  This replaces the need for BM_mesh_select_flush_strip().
2012-04-13 04:02:26 +00:00
8c70caf966 fix for UV reveal (wasnt selecting all verts because check for unselected vert was incorrect after selecting the first face). 2012-04-13 03:41:07 +00:00
bdce58a42c Code cleanup:
* Remove some non used *_button_register functions, panels are done in python.
* Remove do_node_region_buttons, was not used anymore.

Fix:
* Only show Grease Pencil panel in the Node editor, when there is a valid nodetree.
2012-04-13 00:04:56 +00:00
2a5a465e2c Fix part of #30917: solid + glsl + textured solid in texture paint mode did not
show textured solid as it should, was using glsl instead.
2012-04-12 17:34:29 +00:00
10a333556a Fix related to #30917: wrong colors in cycles textured draw mode in some cases,
missed call to glColorMaterial made glEnable(GL_COLOR_MATERIAL) behavior
undefined.
2012-04-12 15:23:34 +00:00
d17efa64a6 improve mesh error prints and quiet a print in mesh_ensure_tessellation_customdata() which happened too often. 2012-04-12 14:36:57 +00:00
02cf29d8b0 Fix: subsurf UV was not working correct with n-gons, it still had hardcoded
4 vertices per face code in some places.
2012-04-12 12:23:25 +00:00
b3bca9d252 Minor code cleanup: Don't reference previous BMwEdgeringWalker after BMW_state_remove. Its memory is freed on that call. 2012-04-12 12:11:21 +00:00
7004f929b9 Fix: loopcut didn't stop on hidden faces 2012-04-12 12:03:12 +00:00
405c9d9a95 code cleanup: remove unused KeyBlock.adrcode 2012-04-12 11:50:43 +00:00
ca8fd669a4 bmesh shape key conversion.
- remove print for impossible error.
- add NULL check incase bmesh and mesh get out of sync (would crash if Basis key-block couldn't be found).
2012-04-12 11:27:50 +00:00
115e762556 bmesh exit editmode: when a mesh shape-key customdata layer exists but the shape-key-block isnt found, creating a shape key was allocated and inline - it didnt set the name or uid, Now use add_keyblock() as every other function does. 2012-04-12 11:11:31 +00:00
4c9486f13d change add_keyblock() not to sort keyblocks by time since this can be a problem when using the function in lower level parts of the code, instead add add_keyblock_ctime() which sets time and sorts on absolute shape keys. 2012-04-12 11:05:16 +00:00
4b8ab31d81 add in a check for Mingw so 4.5 or older will error out on build. 2012-04-12 09:10:10 +00:00
c74ace03e0 fix [#30907] Inset tool with Select Outer disabled does not allow translation of new faces
inset with select-inner faces gave invalid selection.

also correct spelling in some comments.
2012-04-12 07:40:47 +00:00
30888ac25c doxygen docs explaining whats going on with shape-key conversion. 2012-04-12 06:52:50 +00:00
a0c4efa3d2 code cleanup: remove duplicate define on windows. 2012-04-12 03:10:36 +00:00
f8b7cfb6ae code cleanup: quiet some mingw warnings. 2012-04-12 02:50:21 +00:00
cc1259178b code cleanup: utfconv library had some quite confusing formatting, also cleared som warnings. 2012-04-12 02:15:33 +00:00
5aaf3ede76 code cleanup: remove unused var for windows and style edit (remove spaces between 'var[num]') 2012-04-12 00:15:02 +00:00
c8b19b7b7f fix [#30771] Shapekeys: Basis shapekey is not kept in sync with "RealMesh"
behave the same as in 2.4x.

- merge BMesh / Pre-BMesh code shape key conversion code, old code was called as a fallback but merge instead.
- fix possible crash - new bmesh code was clamping the vertex index for the oldverts array by the new total number of verts.
2012-04-11 15:59:50 +00:00
1f6369fd41 bmesh shape key conversion on exiting editmode.
there were 2 blocks of code (both calculating the offset array), now move the fallback method into the main key conversions block.
2012-04-11 15:24:13 +00:00
e7b7bc1272 bmesh exit editmode shape key conversion - split out 'keyblock --> customdata layer index' into its own function, makes code easier to follow. 2012-04-11 14:59:35 +00:00
1eff051461 bmesh shape key conversion when exiting editmode.
- avoid running old conversion code if its not needed.
- de-duplicate functionality which gets offsets from edits made in editmode.
2012-04-11 14:42:44 +00:00
bb0a3e1d90 Game engine: pass string length to BLI_str_cursor_step_prev_utf8 rather than NULL
That's what this function expect (but somehow does not use) and it gave compilation
error when using gcc-4.6.3 from debian linux.
2012-04-11 13:17:13 +00:00
c56b39b8dd write mesh selection history to the blend file. without this active edge/vert are lost on UNDO. 2012-04-11 11:52:21 +00:00
a8226cbcb2 code cleanup: mselect conversion when creating a bmesh from a bmesh was overly verbose. 2012-04-11 11:22:19 +00:00
9e663017d8 py rna/api: fix for error running RNA_property_collection_type_get on non collection property types. 2012-04-11 10:35:09 +00:00
85908b498b fix [#30906] dict(prop) crashes if prop is a PropertyGroup with nested PropertyGroup
the ID of a python ID property can be NULL.
2012-04-11 08:37:48 +00:00
e5579ac505 Fix #30895: uv editor snap selected to adjacent unselected not working correctly,
was apply to unselected uvs too.
2012-04-11 08:37:38 +00:00
fe7f354daa Fix #30900: when opengl offscreen render failed, the wait cursor would incorrectly
stay visible. Patch by Justin Dailey.
2012-04-11 08:27:07 +00:00
b4a0152e76 code cleanup: float formatting was confusing in some cases - eg: (0.,0.,0.) 2012-04-11 08:15:13 +00:00
9ae0523921 fix [#30897] UVEditor: Snap Cursor to Selected
was writing the 3rd component of a 2D vector.
2012-04-11 07:47:09 +00:00
ff6867a768 Fix #30904: MovieClip.objects.new() segfault when no name is passed
Made name property required for new().
2012-04-11 07:35:04 +00:00
84232f8d5a Fix #30664: Texturepaint color does not match texture color (3D View vs UV/Image Editor)
Another regression since bmesh merge which was caused getting CD_MTFACE from
polys datablock instead of face datablock.
2012-04-10 19:27:02 +00:00
dde8c10432 Smoke: Fix for some non animated properties 2012-04-10 17:45:25 +00:00
63e2763842 Fix #30698: python console nodetree paths were not accurate, now show ... like
in some other cases to at least show these are not accurate.
2012-04-10 16:37:05 +00:00
a08fdf1f2a Fix #30874: Single texture display in Edit Mode
It was a regression since 2.62 caused by how texface is passing to drawParamsMapped
Previously it was used from CD layer but now it's getting copied from MexPoly
into a variable allocated in stack for function void emDM_drawFacesTex_common.

To set texture needed to draw particular face function set_draw_settings_cached
is used, which tries to not to copy texture into GPU when it's not needed (for
example, when drawing bunch of faces with the same texture) and one of condition
if texture should be updated in GPU was comparing address of texface passed to
this function and cached texface. But this address are exactly the sane and
points to a memory inside stack of emDM_drawFacesTex_common.

Fixed by cacheing texface content, not it's address.
2012-04-10 16:28:26 +00:00
93e00af7e5 Fix #30850: bevel tool only works on edges but tooltip indicated it worked on
vertices too, fixed tooltip. Also add bevel to edge menu since it works edge
based.
2012-04-10 15:51:22 +00:00
4f06c15202 Fix properties editor, right click menu "Copy to Selected" not working for
object modifier/constraint/physics properties. Now uses RNA path rather than
only properties on the object itself.
2012-04-10 15:49:41 +00:00
530f199124 Code cleanup: remove a bunch of unused code from this file. 2012-04-10 15:47:34 +00:00
4b022ad360 Fix #30754: motion blur shutter was animateable while this is actually not
supported.
2012-04-10 15:43:42 +00:00