Commit Graph

26299 Commits

Author SHA1 Message Date
Sergey Sharybin
ddee22ac35 Camera tracking integration
===========================

Code clean-up:
- Remove unused args from template_movieclip.
- Remove C-defined "Marker" panel.
- Move all properties from old "Marker" panel to template_marker
  template. This properties would be displayed if compact is set to False.
2011-08-16 14:58:24 +00:00
Sergey Sharybin
c32e8912de Camera tracking integration
===========================

initial re-design commit:
- Added Mode to Clip Editor. Currently the following modes are present:
  * Tracking/Solving mode (default)
	* Reconstruction mode
	* Distortion mode
- Hide all tools/properties which doesn't make sense in current mode.
- Keep a look at new template template_marker. It's needed to control
  marker's properties, changing of which should produce new keyframe.
  Currently only "Enabled" property can be control. Probably all
	properties from "Marker" panel could go there so this template
	wouldn't be so specific.
- No operators are disabled for non-their mode. It means they
  can be triggered from Space menu or hotkey.
	Need clear map operators into mode to prevent mess of poll function.
2011-08-16 08:01:23 +00:00
Sergey Sharybin
215da938ff Merging r39397 through r39434 from trunk into soc-2011-tomato 2011-08-16 07:56:44 +00:00
Morten Mikkelsen
405218df6f the diffuse kernel I had first picked for dilation turned out to be not as great as I first thought. This kernel is a more basic one (trite but true) 2011-08-15 17:55:25 +00:00
Campbell Barton
cdb5d11c5f patch [#22523] Expose Object.parentinv matrix via RNA
from Balajee R C (balajeerc)
2011-08-15 17:29:07 +00:00
Brecht Van Lommel
ae884d2e54 Code cleanup: add UNUSED_FUNCTION macro to avoid warning messages about unused
functions.
2011-08-15 16:18:04 +00:00
Brecht Van Lommel
27b3695c4f Remove message "Info: Config directory with "startup.blend" file not found."
There's no reason to have it really, this situation is totally normal, and it
means a terminal window is opened on Windows as long as you haven't saved any
default settings yet.
2011-08-15 16:12:39 +00:00
Brecht Van Lommel
f53143dc83 Fix #27718: driving modifier properties was missing updates, fixed depsgraph. 2011-08-15 14:05:04 +00:00
Brecht Van Lommel
b62951c0d5 Fix #28162: texture properties didn't show correct texture datablock chooser
in a particular setup with two nested material nodes. Material active texture
was looking also recursively into material node, but this was already done
outside of this function.
2011-08-15 13:17:39 +00:00
Brecht Van Lommel
470b39608a Fix #27803: editing texture did not update compositing nodes using that texture. 2011-08-15 12:07:52 +00:00
Brecht Van Lommel
270ed82c7b Fix #28202: deactivating keymap items not saving properly. 2011-08-15 10:03:17 +00:00
Campbell Barton
e4f2234fff workaround [#28250] Append dialogue will ask to create new directory inside a .blend
directory button isnt library aware, for now disable it when a libraries loaded.
2011-08-15 04:11:55 +00:00
Campbell Barton
2c8e1e633c comment unused lines. 2011-08-15 03:41:31 +00:00
Campbell Barton
02b24e655b fix for bug where changing movie filepaths would reset the strip length.
also fixed possible & unlikely buffer overflow.
2011-08-14 14:43:11 +00:00
Sergey Sharybin
1c3309152e Merging r39391 through r39396 from trunk into soc-2011-tomato 2011-08-14 12:44:42 +00:00
Campbell Barton
181104261d patch [#28247] Fix for: [#28236] Separate By Materials fails when some materials "available" to the mesh are unassigned
from Alex Fraser (z0r)
2011-08-14 12:02:01 +00:00
Campbell Barton
cad6ed9bc6 fix for fix r39388, this added checkboxes to buttons which are not supposed to have them.
now only add checkboxes when the background is not emboss - which works for menus but will work in more general cases too.
2011-08-14 11:38:17 +00:00
Sergey Sharybin
eb110bd381 Merging r39330 through r39390 from trunk into soc-2011-tomato 2011-08-14 11:17:39 +00:00
Campbell Barton
540f0c64b5 add in asserts for when array/non array RNA funcions are used incorrectly, would have made previous fix a lot easier to find.
also remove unused argument from RNA_property_array_check.
2011-08-14 10:28:18 +00:00
Campbell Barton
62fdee3d8a fix [#28245] Checkboxes in menu items fail for boolean arrays.
2 bugs with displaying boolean arrays.
2011-08-14 10:17:41 +00:00
Campbell Barton
2187f6772c patch [#28246] Fix for [#28240]: selecting more than one object in the outliner with "shift left mouse" doesn't work anymore
from Alex Fraser (z0r)
2011-08-14 08:39:13 +00:00
Campbell Barton
0b23d378fb fix [#28225] Solidify Modifier creates wrong results when vertex group is attached
infact this is not really a bug, irrespective zero vertex group weights gave overlapping geometry which isn't useful, add an option to set the thickness factor for zero weighted verts.
2011-08-14 06:43:58 +00:00
Dalai Felinto
5e968e36c5 bugfix:[#25603] bad shadows in stereo mode - patch by Juha Maki-Kanto 2011-08-14 04:37:53 +00:00
Campbell Barton
fc128c970b - recently restored sequencer change data operator didnt reset the offsets after a hard cut, causing the new data to be trimmed.
- add change data operator to strip panel next to image file properties since editing every image manually isnt really usable.
- added new sequencer operator "Clear Offsets" (Alt+O), useful to reset the start/end frames around the strip data.
2011-08-14 03:59:22 +00:00
Campbell Barton
c83417b2e2 running bpy.ops.render.render('INVOKE_DEFAULT') would crash blender. 2011-08-13 14:24:53 +00:00
Thomas Dinges
7866b63292 2.6 Release Cycle begin:
*BLENDER_VERSION_CYCLE set to alpha

Idea is to set it to alpha for the first 3 weeks (B-Con1)
Beta for B-Con 2 and 3 
RC for B-Con 4
Release for B-Con 5
2011-08-13 13:45:03 +00:00
Campbell Barton
7c7fac2174 index_to_framebuffer (used for mesh selection) was being called 3x times per call to WM_set_framebuffer_index_color(), because of the cpack define. 2011-08-13 09:22:14 +00:00
Sergey Sharybin
36c5f57616 Camera tracking integration
===========================

- Distortion/undistortion were accidentally swapped in both of grease
  pencil calibration and grid.

  This was fixed but distortion coefficients should be re-adjusted.

  There are some issues with high distortion coefficients but it
  came from libmv and until it'll be fixed there nothing really
  can be done here.

- Fixed displayed aspect ratio for muted footage when pixel/display
  aspect ratio is differ from 1.0 or proxy size is not Full Render,

- Added c-api for image distortion/undistortion, Not used yet.
2011-08-12 21:56:08 +00:00
Brecht Van Lommel
a7dd264940 Nodes: make node set active function usable outside of node editor, and in doing
so fix a missing updating when activating a node with multiple node editors open.
2011-08-12 18:27:48 +00:00
Brecht Van Lommel
0cb606a9bc Code cleanup: fix wrong doxygen file name. 2011-08-12 18:24:17 +00:00
Brecht Van Lommel
a7de5fc191 Code cleanup: small glsl mesh drawing code changes, getting rid of an ugly macro. 2011-08-12 18:17:28 +00:00
Brecht Van Lommel
ceb9dfbdac Code cleanup: remove seam drawing in face select mode, was left over from when
seams were edited there, now only needed in edit mode.
2011-08-12 18:13:55 +00:00
Brecht Van Lommel
c265a686d8 Modifiers: add callback to loop over each texture assigned to a modifier. 2011-08-12 18:11:22 +00:00
Brecht Van Lommel
e4bdb6e95a Code cleanup: replace some manual setting of ob->recalc with DAG_id_tag_update,
is now just as fast anyway with delayed flush.
2011-08-12 18:06:05 +00:00
Sergey Sharybin
fa89789247 Camera tracking integration
===========================

- Option to hide grease pencil (Display -> Grease Pencil).
- Added grease pencil controls to toolar.
- Fixed display issues when stroke contains one point only
  and Manual Calibration is enabled.
2011-08-12 14:55:44 +00:00
Sergey Sharybin
5ddb23daec Camera tracking integration
===========================

Continue improving grease pencil for manual calibration:

- Fixed bug with local undo which was caused by not dropping
  re-done nodes when pushing new undo node.
- Fixed bug with conversion grease pencil to bezier curve
  (last point could be dropped away on such conversion).
- Added new mode: poly line drawing.
  This mode allows to draw poly-line by clicking on
  it's knots. In this mode user is allowed to pan/zoom
  to new position before placing next knot.
2011-08-12 14:42:07 +00:00
Sergey Sharybin
e14e468746 Merging r39312 through r39329 from trunk into soc-2011-tomato 2011-08-12 14:39:04 +00:00
Campbell Barton
ada88c8d8e sequencer todo: change sequence added back (C key)
split up into operators
- change effect input
- change effect type
- change file data

Change plugin is not ported back yet.
2011-08-12 06:08:22 +00:00
Campbell Barton
347f4fac74 add WM_FILESEL_FILES to WM_operator_properties_filesel, sequencer was doing this on its own. 2011-08-12 03:53:26 +00:00
Campbell Barton
a03b52af81 soft limits for add object rotation value, without cont. grab it would get to very large numbers with a small drag. 2011-08-12 03:18:04 +00:00
Campbell Barton
b1c04d379f un-inline GHash functions r26206, these are quite large functions to inline and increase binary size by 30kb, (tested on stripped, cmake release build).
Ran some speed tests and difference was close to the noise level, but inlining gives only ~2 - 3% speedup with build modifier which uses ghash a lot.
2011-08-12 02:23:06 +00:00
Sergey Sharybin
34ce85571f Camera tracking integration
===========================

Return non-blocking behavior to grease pencil sketch mode.

It is needed to implement more accurate line drawing based
on using mouse click on where line "knot" should be added
and allowing pan/zoom between such knots selection.

There are still issues with vertex paint/sculpt modes,
but they aren't critical -- just behavior could be
improved here.
2011-08-11 18:18:46 +00:00
Sergey Sharybin
a8c2759b97 Merging r39251 through r39311 from trunk into soc-2011-tomato
Splash screen is kept to be tomatoes.
2011-08-11 18:16:29 +00:00
Sergey Sharybin
944cdf04dd Fix for crash when using undo during sketching session.
Currently, grease pencil conflicts with such operators
as undo and set object mode which makes behavior totally
unpredictable and crash for some cases.

The only way to solve this proper is to ger rid of pointers
to data which can chage stored in operator custom data.
2011-08-11 13:40:47 +00:00
Brecht Van Lommel
9c9cd71a86 Fix #28180: crash running wm.keyconfigs.user.keymaps.new("My Keymap").
There isn't much point in doing this at the moment, but shouldn't crash.
2011-08-11 11:56:02 +00:00
Mitchell Stokes
165e6dbc07 Adding a readonly length_squared property to mathutils.Vector. This is simply vector.dot(vector), so nothing new is really added, but it's nice for writing more intent revealing code. In other words:
if vec.dot(vec) > some_distance*some_distance:
    do_something()

might not be quite as obvious looking as:

if vec.length_squared > some_distance*some_distance:
    do_something()

As to why you'd want to use length_squared over length is that length uses a square root, which isn't always necessary for simple distance checks (e.g., closest object, checks like the ones above, ect).
2011-08-11 09:40:14 +00:00
Campbell Barton
99caa9470e fix [#28213] Imperial unit for 0.001 inches inconsistently displayed as mils and thous 2011-08-11 08:24:56 +00:00
Guillermo S. Romero
80acfdc7a0 SVN maintenance. 2011-08-11 06:40:04 +00:00
Campbell Barton
a7663cc377 use ghash for operator and menu types, was doing string lookup in the operator list (containing over 1000 items) for each button draw.
gives small speedup for UI drawing and overall startup time.
2011-08-11 06:06:17 +00:00
Campbell Barton
0fac849d44 ifdef'd outliner code which is spesific to gsoc pepper with '// GSOC_PEPPER' so its obvious. this will keep merging pepper changes from conflicting and can be removed when its finally merged. 2011-08-11 05:50:05 +00:00