Commit Graph

47594 Commits

Author SHA1 Message Date
Bastien Montagne
310c0b9f10 Fixed another bunch of i18n bugs (thx to Leon Cheung for spotting them), among which:
* Drag'n'drop translation in Outliner
* "Execute" button in file window
* "Labels" of spacing elements, in multi-column enums
* A glitch with nodes "Value to RGB", they where called "ColorRamp" in node_type_base() call. This is not definitive, though, as it appears that UI node names are determined by this call, while it should be by "defines" in rna_nodetrre_types.h, I guess... Anyway, not good to have such things in two different places!

Also moved default context name under BLF_translation.h, much better to have those all in one place, accessible from whole Blender code!
2012-04-14 15:06:41 +00:00
Sergey Sharybin
ec4edb94d9 Camera tracking: initial commit of dopesheet view for clip editor:
- Changed regions to use the whole main region for such views as
  curves and dopesheet. This allows to have own panels with
  tools/properties in this areas.
- Active clip is getting synchronized between different clip editor
  editors in the same screen, so updating of curve/dopesheet views
  happens automatically when one changes current clip in one of this
  editors.
- Curves and dopesheet are still using PREVIEW region type instead of
  re-using main region.
- To deal with vertical synchronization in dopesheet, re-initialization
  of preview region happens.
- Panels in toolbox and properties panels are now separated to rely
  on current view mode, some operators and poll functions still need
  to be updated.
- Added new screen called "Movie Tracking" where layout is configured to
  display timeline, main clip window, curves and dopesheet.
2012-04-14 12:03:23 +00:00
Sergey Sharybin
c3218ebdff Camera tracking: use texture buffers (if supported) to display clip editor frames
Initial idea was to perform bilinear filtering for displaying proxied frame
to make it looking a bit smoother. It was done but it was also discovered
that using such kind of texture buffers helps on some crappy videocards
when playing $k footage.
2012-04-14 12:03:09 +00:00
Sergey Sharybin
37c02ddee1 Camera tracking: revert changes made for texture buffer frame drawing.
Will be applied as another cleaned-up patch.
2012-04-14 12:03:03 +00:00
Sergey Sharybin
339efd5e01 Camera tracking: if there's no image for current frame display
default grid and allow to interact with tracks for operators
which doesn't require image.
2012-04-14 12:02:54 +00:00
Sergey Sharybin
f9d9b4635d Camera tracking: support of tripod motion solving
Expose option into interface to use modal solver which currently
supports only tripod motion.

This solver requires two tracks at least to reconstruct motion.
Using more tracks aren't improving solution in general, just adds
instability into solution and slows down things a lot.

Refirement of camera intrinsics is supported by this solver.

To use this solver just activate "Tripod Motion" checkbox in
solver panel.
2012-04-14 12:02:47 +00:00
Joshua Leung
513f363ea0 Silencing some compiler warnings on Windows
argv is defined as "char *" here so that unicode magic can happen causing
problems later on when "const char**" is expected instead. While this fix is
redundant on other platforms, it's a lot less confusing than some of the
alternative fixes.
2012-04-14 11:58:52 +00:00
Sergey Sharybin
bfca79a657 Merging r44227 through r45619 from trunk into soc-2011-tomato 2012-04-14 10:46:47 +00:00
Tamito Kajiyama
4a19ccfa5f Merged changes in the trunk up to revision 45619. 2012-04-14 10:38:11 +00:00
Campbell Barton
969a079aeb code cleanup: comment (almost) all members of KeyBlock & Key. 2012-04-14 03:58:08 +00:00
Campbell Barton
289f627f63 code cleanup: when extending name length Key.elemstr was incorrectly extended to 64 chars, added comment and set back to original length. 2012-04-14 02:48:56 +00:00
Campbell Barton
c8a1ef78c0 style cleanup: key.c 2012-04-14 02:32:32 +00:00
Bastien Montagne
889dc208bf Grmph, BLF_(p)gettext were not protected against NULL message/context, was causing a sigsev with latest own commits (in File menu)! 2012-04-13 20:58:59 +00:00
Bastien Montagne
134bf10e4d i18n: "labels" of multi-section enums need to be marked for gettext (N_()), as they are not available from python... 2012-04-13 20:25:05 +00:00
Bastien Montagne
4c1c092fb9 Fixed (or partly fixed) various missing UI translations, mainly with some specific ops invocations (popup menus…), and (to some extent) with the undo/redo stuff. 2012-04-13 19:59:29 +00:00
Thomas Dinges
455b8212b6 Scons:
* Compile fix for r45609, pthreads include was missing.
2012-04-13 19:34:15 +00:00
Brecht Van Lommel
b219b5294b Fix #30376: cycles ignores camera override from sequencer. 2012-04-13 17:42:03 +00:00
Brecht Van Lommel
440f449265 Fix #30858: UI losing buttons at some random moment after using Blender for a
while. This may not fix all cases but should at least solve the issue when
rendering with cycles.

The cause was a race condition on C->data.recursion, with multiple threads
accessing context at the same time. Cycles itself does not access context
from the render thread, but the bpy api would do a context update for any
callback in case e.g. a new file got loaded. Disabled that now in non-main
threads.

The ideal solution would be to not allow any context access at all from threads
but that's not so simple to implement, especially not this close to release.
2012-04-13 16:03:52 +00:00
Antony Riakiotakis
152b253c2c remove duplicate notifier event 2012-04-13 15:33:29 +00:00
Campbell Barton
87364befd9 fix [#30728] Align View Restricts Further View Changes
turntable rotation can get into gimbal lock.
2012-04-13 15:15:13 +00:00
Brecht Van Lommel
a914c9bb7e Fix missing cycles update when tweaking some render layer settings. 2012-04-13 14:18:33 +00:00
Campbell Barton
958e71e375 code cleanup: use axis_angle_to_quat() to simplify turntable view rotate code. 2012-04-13 13:55:55 +00:00
Campbell Barton
0d9fa93581 fix for editmode UV hiding with edges, was also using deprecated flag (UV_SELECT_FACE) 2012-04-13 13:31:41 +00:00
Sergey Sharybin
ff3074b631 Increase limit for game simulation steps to 50, made it hard limit.
Soft limit is still 5, so should be pretty safe even if it's not
supported well in all cases.
2012-04-13 12:45:44 +00:00
Brecht Van Lommel
44258c3c9a Fix #30876, #30932: crash in material preview render after undo or file load,
due to old material copies hanging around in the preview database.

This crash happened pretty randomly, but was especially noticeable when using
node groups.
2012-04-13 12:12:54 +00:00
Thomas Dinges
3578a93eb8 Node Editor / Properties Region:
* Improved checks for Grease Pencil and Active Node panel, so the panel only gets shown when there is valid data, rather than showing the empty panel. 

Thanks to Lukas Tönne for some help! :)
2012-04-13 11:58:16 +00:00
Campbell Barton
a1e6e75add fix [#30936] Face Inset gives bad UV's 2012-04-13 10:37:33 +00:00
Brecht Van Lommel
0cabb2fa6a Fix related to #30928: missing image editor update when changing active image
texture node.
2012-04-13 09:31:37 +00:00
Campbell Barton
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
Brecht Van Lommel
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
Campbell Barton
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
Campbell Barton
05bdc46641 fix [#30923] Hide Unselected in the UV/Image editor does nothing 2012-04-13 07:18:26 +00:00
Campbell Barton
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
Campbell Barton
b2667970d2 style cleanup: uv editor 2012-04-13 06:33:59 +00:00
Nicholas Bishop
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
Campbell Barton
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
Campbell Barton
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
Thomas Dinges
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
Brecht Van Lommel
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
Ove Murberg Henriksen
93f22cf012 svn merge ^/trunk/blender -r45364:HEAD --accept postpone 2012-04-12 16:01:24 +00:00
Brecht Van Lommel
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
Campbell Barton
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
Brecht Van Lommel
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
Antony Riakiotakis
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
Antony Riakiotakis
7004f929b9 Fix: loopcut didn't stop on hidden faces 2012-04-12 12:03:12 +00:00
Campbell Barton
405c9d9a95 code cleanup: remove unused KeyBlock.adrcode 2012-04-12 11:50:43 +00:00
Campbell Barton
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
Campbell Barton
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
Campbell Barton
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
Campbell Barton
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