blender.git
8 years agoCamera tracking integration
Sergey Sharybin [Mon, 1 Aug 2011 15:28:19 +0000 (15:28 +0000)]
Camera tracking integration
===========================

- Do not show frame boundary border when stabilization isn't enabled.
- Separate stabilization settings from display in clip editor.
  Now clip can contain stabilization data but still be displayed
  un-stabilized in clip editor.
- Internal changes in stabilization:
  * Use separated location/scale parameters rather than 4x4 matrix.
    In some ares "decomposed" data is needed (text draw functions, i.e.).
    Also such decomposed data could be used in compositor.
  * MovieClip now uses own structure for cache where additional data
    can be stored. MovieCache structure now one of properties in
    this new structure.
  * Get rid of stable image buffer stored in MovieClipStabilization
    structure. Pre-created buffer for scaling still stored there.
    This helps to keep playback realtime -- re-creating this buffer
    introduces ~15% slowdown.
- Added sliders to 2D stabilization panel which controls intensity
  of translation/scale which applies on shot.
- Added filter type to Stabilize2D compositor node. Supports nearest,
  bilinear and bicubic interpolation.
- After discussion with Sebastian and Francois added new node called
  Transformation. It can apply translation, rotation and scale. It's
  not the same thing as applying this components separately -- all
  transformation is happening inside "canvas". And it should be more
  accurate on interpolation and sub-pixel translation.
  Need to check order of applying translation/scale/rotation btw.
- Added output sockets to movie clip compositor node. They holds
  stabilization data which can be used by Translate or Transform
  nodes.
- Minor fix of UI issues in Display panel.

8 years agoMerging r38832 through r38897 from trunk into soc-2011-tomato
Sergey Sharybin [Mon, 1 Aug 2011 15:24:15 +0000 (15:24 +0000)]
Merging r38832 through r38897 from trunk into soc-2011-tomato

8 years agofix [#28061] Texture (paint) bleeding on edges
Campbell Barton [Mon, 1 Aug 2011 08:53:57 +0000 (08:53 +0000)]
fix [#28061] Texture (paint) bleeding on edges
respect clamp u/v image options.

8 years agoCamera tracking integration
Sergey Sharybin [Mon, 1 Aug 2011 08:29:17 +0000 (08:29 +0000)]
Camera tracking integration
===========================

- If "Zoom To Mouse" is enabled in user preferences then
  zooming would happen to mouse position in clip editor.
- Fixed 1px padding from shot boundary rectangle.
- Allow for some operators grab cursor.
- Enlarge marker anchor sliding area and make it prioritized
  on pattern/search slide zones,

8 years agofix for template
Campbell Barton [Mon, 1 Aug 2011 06:55:05 +0000 (06:55 +0000)]
fix for template

8 years agofix [#28112] Vertex paint crash
Campbell Barton [Mon, 1 Aug 2011 06:50:24 +0000 (06:50 +0000)]
fix [#28112] Vertex paint crash

8 years agoadd sse flags for cmake/msvc
Campbell Barton [Mon, 1 Aug 2011 06:11:41 +0000 (06:11 +0000)]
add sse flags for cmake/msvc

8 years agofix, uvproject modifier wasn't copying the uv layer name,
Campbell Barton [Mon, 1 Aug 2011 05:25:30 +0000 (05:25 +0000)]
fix, uvproject modifier wasn't copying the uv layer name,
also edit var names from recent commit to better fit with other functions.

8 years agoreplace dutch variable name 'aantal' with 'tot'
Campbell Barton [Mon, 1 Aug 2011 02:58:44 +0000 (02:58 +0000)]
replace dutch variable name 'aantal' with 'tot'

8 years agofix for failure to create curve knots when both endpoint and bezier U were enabled.
Campbell Barton [Mon, 1 Aug 2011 02:52:08 +0000 (02:52 +0000)]
fix for failure to create curve knots when both endpoint and bezier U were enabled.
use default when invalid settings given.

removed odd/annoying bit shifting of the flagu/v for such basic function made code hard to understand and would fail if new flags were added.

8 years agoBug fix: loading a file that had particles using a dupligroup from a liblinked file...
Janne Karhu [Sun, 31 Jul 2011 16:26:02 +0000 (16:26 +0000)]
Bug fix: loading a file that had particles using a dupligroup from a liblinked file without the library file being present crashed

8 years agofix for error in recent commit.
Campbell Barton [Sun, 31 Jul 2011 12:46:34 +0000 (12:46 +0000)]
fix for error in recent commit.

8 years agofix for material slot removal (r38879)
Campbell Barton [Sun, 31 Jul 2011 12:43:41 +0000 (12:43 +0000)]
fix for material slot removal (r38879)
- The object ID was being passed to the data_delete_material_index_id() from object_remove_material_slot(), rather then the object data. (so the material slot fix wouldnt run in that case).
- add support for fixing text object materials too.

8 years agoreverting part of #38876 (whitespace edits)
Dalai Felinto [Sun, 31 Jul 2011 11:21:48 +0000 (11:21 +0000)]
reverting part of #38876 (whitespace edits)
the new if/else nesting introduced in the previous commit makes no sense.
(since I was here I add a comment for extrainfo and did some small cleanup)

8 years agobugfix [#28111] material.pop breaks mt->mat_nr
Dalai Felinto [Sun, 31 Jul 2011 11:12:38 +0000 (11:12 +0000)]
bugfix [#28111] material.pop breaks mt->mat_nr

create a new parameter for materials.pop() to not remove material slot.
this way the mat_nr is still the old one.

for the default behaviour we now have material remapping (i.e. data_delete_material_index_id(id, index)).
This new function is brought from the material_slot remove function.

8 years agowhen converting curves from poly -> nurbs, dont enable Bezier-U flag.
Campbell Barton [Sun, 31 Jul 2011 07:58:50 +0000 (07:58 +0000)]
when converting curves from poly -> nurbs, dont enable Bezier-U flag.

Not sure why this was enabled, possibly from copy/paste with bezier->nurbs code?

If you have meny poly lines there was no nice way to convert these into a smoothed nurbs curve.
Ran into this when trying to convert generated ivy into smooth nurbs.

8 years agowhitespace edits, had odd space/tab mix
Campbell Barton [Sun, 31 Jul 2011 07:54:24 +0000 (07:54 +0000)]
whitespace edits, had odd space/tab mix

8 years agofix for building without bullet
Campbell Barton [Sun, 31 Jul 2011 07:45:54 +0000 (07:45 +0000)]
fix for building without bullet

8 years agoSVN maintenance.
Guillermo S. Romero [Sun, 31 Jul 2011 06:03:14 +0000 (06:03 +0000)]
SVN maintenance.

8 years agopy api: sphinx doc corrections, pep8 cleanup and style edits, also added __all__...
Campbell Barton [Sun, 31 Jul 2011 03:15:37 +0000 (03:15 +0000)]
py api: sphinx doc corrections, pep8 cleanup and style edits, also added __all__ to some modules which were missing it.

8 years ago== PBVH ==
Nicholas Bishop [Sun, 31 Jul 2011 02:34:53 +0000 (02:34 +0000)]
== PBVH ==

OK, after that failure of committing a bunch of old junk, hopefully
this is what I actually meant to commit :)

* Added big comments to some of the fields in struct PBVHNode. I
  always forget the details of these, so finally wrote it down
  properly.

* Changed types of PBVHNode.face_vert_indices and PBVHNode.flag to
  better reflect their contents.

* There should be no functional changes here.

8 years agoEditMesh-based skin node drawing
Nicholas Bishop [Sun, 31 Jul 2011 02:03:48 +0000 (02:03 +0000)]
EditMesh-based skin node drawing

8 years agoImported bsphere.c, mostly ifdef'd out for now
Nicholas Bishop [Sun, 31 Jul 2011 02:03:39 +0000 (02:03 +0000)]
Imported bsphere.c, mostly ifdef'd out for now

8 years agoAdded stub for Skin modifier UI
Nicholas Bishop [Sun, 31 Jul 2011 02:03:33 +0000 (02:03 +0000)]
Added stub for Skin modifier UI

8 years agoAdded DNA and RNA for skin modifier, stubbed in skin modifier functions
Nicholas Bishop [Sun, 31 Jul 2011 02:03:28 +0000 (02:03 +0000)]
Added DNA and RNA for skin modifier, stubbed in skin modifier functions

8 years agoAdded SkinNode DNA and customdata.
Nicholas Bishop [Sun, 31 Jul 2011 02:03:21 +0000 (02:03 +0000)]
Added SkinNode DNA and customdata.

8 years agopatch [#27909] Added constants in bge.constraints by Solano Felicio (solano) + some...
Dalai Felinto [Sat, 30 Jul 2011 23:16:22 +0000 (23:16 +0000)]
patch [#27909] Added constants in bge.constraints by Solano Felicio (solano) + some changes in rst
I named all the BGE modules with their actual names (e.g. Rasterizer, Video Texture, ...). so in the API index.html page they look more like the other Blender modules.
I did the same for the bgl module.

For bge.constraints this patch exposes the constants values for debug mode and createConstraints (they were hardcoded innts before).

+ making all the "todo" and #comments into rst comments (.. comments)
Thanks Solano, it's great to get help to those tasks :)

8 years agoHides console on win32 even if python path is 2 or more lines
Alexander Kuznetsov [Sat, 30 Jul 2011 19:09:34 +0000 (19:09 +0000)]
Hides console on win32 even if python path is 2 or more lines

Adding tlhelp32.h header

8 years agoCamera tracking integration
Sergey Sharybin [Sat, 30 Jul 2011 17:14:07 +0000 (17:14 +0000)]
Camera tracking integration
===========================

- Fixed occasional crash caused by conflicting access
  to non-threadsafe moviecache. Added lock on movie clip
  ibuf acquire level.
- A bit nicer feedback from libmv when doing reconstruction.
  Now if all tracks and frames were reconstructed average
  error would be reported in "notification area".
  If there's something failed to be reconstructed warning
  message would appear and failed items would be printed to
  the console.

8 years agoBugfix #28121
Ton Roosendaal [Sat, 30 Jul 2011 15:45:27 +0000 (15:45 +0000)]
Bugfix #28121

Linked Library objects or object->data should not allow to go
to sculptmode. Also cleaned up mode menu with invalid entries then.

8 years agoCamera tracking integration
Sergey Sharybin [Sat, 30 Jul 2011 14:22:15 +0000 (14:22 +0000)]
Camera tracking integration
===========================

- Fixed bug with transforming several markers at the same time.
  (Memory access issue, index was chacging in wrong way).
- Do not check result of BKE_tracking_get_marker -- it should
  always return valid marker.

8 years agobpy fix for crash/assert on running dir() on a non collection property + some other...
Campbell Barton [Sat, 30 Jul 2011 13:18:04 +0000 (13:18 +0000)]
bpy fix for crash/assert on running dir() on a non collection property + some other minor corrections.

8 years agoBugfix #28109
Ton Roosendaal [Sat, 30 Jul 2011 10:14:50 +0000 (10:14 +0000)]
Bugfix #28109

Old issue with OSX Cocoa code: shift+scrollwheel should send
a 'horizontal wheel' event to Blender. Blender only recognizes
scroll events in general though. The old code then just didn't
send an event at all, not passing on shift+scrolls.

Now the scroll event is sent anyway, relying on Blender's
keymapping to define what to do with shift+scroll.

This fixes things like shift+scroll to scale ListBox widgets.

8 years agoquiet some compiler warnings & fix possible (but unlikely) crash.
Campbell Barton [Sat, 30 Jul 2011 09:24:10 +0000 (09:24 +0000)]
quiet some compiler warnings & fix possible (but unlikely) crash.
also added GPLv2+ header to resources.c.

8 years agoMerging r38819 through r38831 from trunk into soc-2011-tomato
Sergey Sharybin [Fri, 29 Jul 2011 21:14:20 +0000 (21:14 +0000)]
Merging r38819 through r38831 from trunk into soc-2011-tomato

8 years agoWhile looking at the bug report, found some more issues...
Thomas Dinges [Fri, 29 Jul 2011 20:59:46 +0000 (20:59 +0000)]
While looking at the bug report, found some more issues...
This is the result of RNA renaming at it's glance. ;-)

8 years agoCamera tracking integration
Sergey Sharybin [Fri, 29 Jul 2011 20:57:53 +0000 (20:57 +0000)]
Camera tracking integration
===========================

Fixed some more typos.

8 years agoCamera tracking integration
Sergey Sharybin [Fri, 29 Jul 2011 20:55:23 +0000 (20:55 +0000)]
Camera tracking integration
===========================

Changed behavior of 2D stabilization:

- Fixed epic spelling error.
- Neither 3d viewport nor MovieClip compositor input node
  are using stable footage now.
- Now one thread lock can be avoided -- stable shot
  isn't acquiring from several threads.
- Added compositor noe Distort->Stabilize 2D which is
  supposed to stabilize "incoming" image using movie clip
  block as reference.

Probably it could be useful to define MAT4 socket type and
use it in MovieClip node as output for stabilization and
as input socket for Stabilization node so relation could be
easily visible on "graph".

8 years agoFix for [#28117] Diffuse reflection IPO curve not imported correctly from 2.49b files
Thomas Dinges [Fri, 29 Jul 2011 20:46:30 +0000 (20:46 +0000)]
Fix for [#28117] Diffuse reflection IPO curve not imported correctly from 2.49b files

8 years agoPatch [#27925] by Andrew Cox and me
Alexander Kuznetsov [Fri, 29 Jul 2011 20:21:37 +0000 (20:21 +0000)]
Patch [#27925] by Andrew Cox and me

Modifier key sticks after Alt-tab on Win32

8 years agoCamera tracking integration
Sergey Sharybin [Fri, 29 Jul 2011 15:47:09 +0000 (15:47 +0000)]
Camera tracking integration
===========================

Fixed segfault when turning stabilization on when there's
no compositing tree.

8 years agoCamera tracking integration
Sergey Sharybin [Fri, 29 Jul 2011 15:25:00 +0000 (15:25 +0000)]
Camera tracking integration
===========================

Implemented 2D stabilization:

- Based on average point of several tracks.
- Tracks for stabilization are controllable from
  "2D stabilization" panel.
- Implemented autoscaling. Could fail if average point is
  too close to frame boundary.
- Background clip in 3D viewport and MovieClip input
  compositor nodes are using stable shot.

Some internal weak things:
- Stable shots aren't cached in moviecache. There is
  only one "slot" for stable shot inside stabilization
  structure.
- This could fail if several threads are requested different
  frames (for example when starting playback, pause to make
  Nodes Editor trigger refresh, continue playback).
- Due to it shouldn't crash i decided to implement better
  caching for stable shots a bit later.

8 years agoMerging r38780 through r38818 from trunk into soc-2011-tomato
Sergey Sharybin [Fri, 29 Jul 2011 15:18:14 +0000 (15:18 +0000)]
Merging r38780 through r38818 from trunk into soc-2011-tomato

8 years agoWhen relinking node group outputs from sockets of different type, automatically chang...
Lukas Toenne [Fri, 29 Jul 2011 07:14:03 +0000 (07:14 +0000)]
When relinking node group outputs from sockets of different type, automatically change the output to the source type. Feature request by Daniel Salazar.

8 years agopep8 cleanup, also print message when attempting to run in animation player mode.
Campbell Barton [Fri, 29 Jul 2011 01:24:03 +0000 (01:24 +0000)]
pep8 cleanup, also print message when attempting to run in animation player mode.

8 years ago* Code cleanup
Thomas Dinges [Thu, 28 Jul 2011 18:19:15 +0000 (18:19 +0000)]
* Code cleanup
A row with alignment for 1 property = useless: ;-)

8 years agoFix #27719: custom RNA properties fail to update drivers. Hopefully this is
Brecht Van Lommel [Thu, 28 Jul 2011 15:51:59 +0000 (15:51 +0000)]
Fix #27719: custom RNA properties fail to update drivers. Hopefully this is
not too slow, but now we do a dependency graph tag also for these in addition
to regular ID properties, not sure how to get around it.

8 years agoFix part of #27944: color managment discrepancy in GLSL materials with nodes.
Brecht Van Lommel [Thu, 28 Jul 2011 14:28:27 +0000 (14:28 +0000)]
Fix part of #27944: color managment discrepancy in GLSL materials with nodes.

8 years agofix [#28096] Custom gradient for weightpainting in mask mode not working properly.
Campbell Barton [Thu, 28 Jul 2011 12:17:24 +0000 (12:17 +0000)]
fix [#28096] Custom gradient for weightpainting in mask mode not working properly.

8 years agoNew option for multires modifier: Subdivide UVs
Sergey Sharybin [Thu, 28 Jul 2011 11:16:10 +0000 (11:16 +0000)]
New option for multires modifier: Subdivide UVs

Enabled by default and also enabled for older filesm so
there should be no regressions.

In some cases it's useful to not use subdivided uvs for multires.

8 years agoCamera tracking integration
Sergey Sharybin [Thu, 28 Jul 2011 11:05:28 +0000 (11:05 +0000)]
Camera tracking integration
===========================

- Small code cleanup.
- Added missed notifier for animation play start.
- Fixed bundle colorcode detection (it didn't use track
  offset to determine distance between original track
  position and bundle projection).
- Changed behavior of alt-g grabbing. Now it defines offset.

8 years agoMerging r38733 through r38779 from trunk into soc-2011-tomato
Sergey Sharybin [Thu, 28 Jul 2011 11:01:38 +0000 (11:01 +0000)]
Merging r38733 through r38779 from trunk into soc-2011-tomato

8 years agofix [#28095] Select Pattern don't select all the bone in edit mode
Campbell Barton [Thu, 28 Jul 2011 07:55:09 +0000 (07:55 +0000)]
fix [#28095] Select Pattern don't select all the bone in edit mode
& some style changes.

8 years agofix error in writing dupligroups for X3D export, may have effected other exporters...
Campbell Barton [Thu, 28 Jul 2011 07:10:39 +0000 (07:10 +0000)]
fix error in writing dupligroups for X3D export, may have effected other exporters too.

8 years agoreport an error when user blender versions other then 2.4x for animation playback.
Campbell Barton [Thu, 28 Jul 2011 05:09:31 +0000 (05:09 +0000)]
report an error when user blender versions other then 2.4x for animation playback.

8 years agosequencer add strips now check for overlap by default (option can be disabled for...
Campbell Barton [Thu, 28 Jul 2011 03:44:17 +0000 (03:44 +0000)]
sequencer add strips now check for overlap by default (option can be disabled for python when this can become problematic for automation).

8 years agoautomatically update the redirect from http://www.blender.org/documentation/250Python...
Campbell Barton [Thu, 28 Jul 2011 03:08:35 +0000 (03:08 +0000)]
automatically update the redirect from blender.org/documentation/250PythonDoc/ when uploading docs

8 years agoonly initialize snap from the scene settings for view3d and image spaces since snap...
Campbell Barton [Thu, 28 Jul 2011 02:15:58 +0000 (02:15 +0000)]
only initialize snap from the scene settings for view3d and image spaces since snap in the 3D view was enabling snap in the graph editor and sequencer without a button to disable it in those spaces.

8 years agoDon't write library_materials tag when there are no materials.
Nathan Letwory [Thu, 28 Jul 2011 00:08:03 +0000 (00:08 +0000)]
Don't write library_materials tag when there are no materials.

8 years agorefix for #27912: crash after mesh.materials.pop() (fixed wrongly on rev. 38299 ...
Dalai Felinto [Wed, 27 Jul 2011 20:36:11 +0000 (20:36 +0000)]
refix for #27912: crash after mesh.materials.pop() (fixed wrongly on rev. 38299 - patch by Benoit Boilsee

bug spotted while reviewing a patch.
things are working now

8 years agofix [#28098] Continuous Grab does not work for movement of the "Backdrop" in the...
Campbell Barton [Wed, 27 Jul 2011 17:49:35 +0000 (17:49 +0000)]
fix [#28098] Continuous Grab does not work for movement of the "Backdrop" in the Node Editor

8 years agominor warning fixes for clang-static-checker
Campbell Barton [Wed, 27 Jul 2011 13:03:56 +0000 (13:03 +0000)]
minor warning fixes for clang-static-checker

8 years agoCamera tracking integration
Sergey Sharybin [Wed, 27 Jul 2011 12:53:39 +0000 (12:53 +0000)]
Camera tracking integration
===========================

Attempt to switch moviecache to use CacheLimiter.

Some changes in limiter were necessary:
- Limiter counted mapped memory twice when was chacking
  how many memory is used.
- It was using "global" memory usage not memory usage by
  cached elements. It will cause big problems when there's
  large mesh or plenty of undo steps are in memory nothing
  would be cached in sequencer.
- To solve this problem introduced "callback" to measure
  cached element size. It could be not very accurate in general,
  but it works well for image buffers. And if this callback
  isn't set old-school memory usage check would be used.
- The whole cache used to get freed when memory limit exceeded,
  now it'll drop only as much elements as necessary to reduce
  memory usage.

Sequence cache wasn't switched to use moviecache but
now it's really easy to do. When i'll be sure new caching
scheme works fine.

Now clip editor uses as much memory for cache as it's set in
User Preferences (Preferences -> System -> Sequencer -> Memory
Cache Limit) which si 128Mb by default. Please do not complain
about few cached frames out-of-box and just increase limit
there. Caching fixed amount of frames wasn't so nice indeed.

8 years agoCamera tracking integration
Sergey Sharybin [Wed, 27 Jul 2011 09:48:19 +0000 (09:48 +0000)]
Camera tracking integration
===========================

- glog should no flood into logs files now.
- Request from Francois - changes in sliding:
  * Anchor point is for sliding the whole marker.
  * Square on pattern moves pattern and search relative
    to anchor point.
  * Square on search moves search only.
- Bundles in 3d viewport are colored by track custom color.

8 years agofix [#28066] Unchecking 'self project' messes up 'Snap to Vertex'
Campbell Barton [Wed, 27 Jul 2011 07:22:31 +0000 (07:22 +0000)]
fix [#28066] Unchecking 'self project' messes up 'Snap to Vertex'
this option is useful for all non-grid snapping modes (when in editmode) so make available in those cases too.

8 years agomore minor warning cleanups and improve error reporting if text fails to save.
Campbell Barton [Wed, 27 Jul 2011 06:55:20 +0000 (06:55 +0000)]
more minor warning cleanups and improve error reporting if text fails to save.

8 years ago* Fixed a typo in the code (uiLayoutItemSplt -> uiLayoutItemSplit)
Thomas Dinges [Tue, 26 Jul 2011 20:22:54 +0000 (20:22 +0000)]
* Fixed a typo in the code (uiLayoutItemSplt -> uiLayoutItemSplit)

8 years agoFix part of [#28088] bad button spacing with layout engine for menu items.
Thomas Dinges [Tue, 26 Jul 2011 20:05:17 +0000 (20:05 +0000)]
Fix part of [#28088] bad button spacing with layout engine for menu items.
* Fixed a cut off text.
* small cleanup

8 years ago- bugfix for icon listview where the icons would only wrap once
Campbell Barton [Tue, 26 Jul 2011 19:47:56 +0000 (19:47 +0000)]
- bugfix for icon listview where the icons would only wrap once
- also quiet some clang warnings

8 years agoRNA: function calls with optional parameters were not giving correct default
Brecht Van Lommel [Tue, 26 Jul 2011 16:01:09 +0000 (16:01 +0000)]
RNA: function calls with optional parameters were not giving correct default
values for arrays.

8 years agoCamera tracking integration
Sergey Sharybin [Tue, 26 Jul 2011 15:58:29 +0000 (15:58 +0000)]
Camera tracking integration
===========================

- Clip Editor now could be an owner for jobs. It was useful
  when i've been attaching Peter's work in my local repo.
- Fixed mouse selection to handle offset correct.

8 years agoMerging r38704 through r38732 from trunk into soc-2011-tomato
Sergey Sharybin [Tue, 26 Jul 2011 15:56:53 +0000 (15:56 +0000)]
Merging r38704 through r38732 from trunk into soc-2011-tomato

8 years agocorrect misc warnings
Campbell Barton [Tue, 26 Jul 2011 13:33:04 +0000 (13:33 +0000)]
correct misc warnings

8 years agofix for NULL pointer crash with operator repeat, looks like error print got mixed up.
Campbell Barton [Tue, 26 Jul 2011 13:05:22 +0000 (13:05 +0000)]
fix for NULL pointer crash with operator repeat, looks like error print got mixed up.

8 years agoinclude menu ID's in tooltips when python tips are enabled, there was no way to find...
Campbell Barton [Tue, 26 Jul 2011 09:19:51 +0000 (09:19 +0000)]
include menu ID's in tooltips when python tips are enabled, there was no way to find the ID of a menu which become annoying if you wanted to reference it from a script.

8 years agoFix #28087: Opening files in the text editor ignores the last newline '\n'
Sergey Sharybin [Tue, 26 Jul 2011 08:13:27 +0000 (08:13 +0000)]
Fix #28087: Opening files in the text editor ignores the last newline '\n'

It was tricky conversion of file buffer to text lines. Should work fine now.

8 years agoset the development cycle to 'beta'.
Campbell Barton [Tue, 26 Jul 2011 07:41:14 +0000 (07:41 +0000)]
set the development cycle to 'beta'.

8 years agopy api:
Campbell Barton [Tue, 26 Jul 2011 07:39:00 +0000 (07:39 +0000)]
py api:
- added menu templates
- move template menu into the header of the text editor (so users will find more easily)
- updated mathutils examples, switching the order of multiplication.

8 years agoCamera tracking integration
Sergey Sharybin [Mon, 25 Jul 2011 18:11:22 +0000 (18:11 +0000)]
Camera tracking integration
===========================

- Split clip hotkeys into two categories:
  * Global
  * Editing
  This allows to re-use such hotkeys as track markers
  from properties region without worrying about conflicts.
- Anchor point could now be offseted from marker position.
- Pattern can now be symmetrical relative to marker position only.
- Changes to mouse sliding:
  * Left top rectangle used for marker position and now
    it's half inside and half outside of marker.
  * Right bottom corners are for size.
  * Anchor point can be slided with mouse to adjust offset.
- Resolved conflict caused by left-mouse selection option.
  Now it works perfectly with sliding -- no more "sticky" keys or so.
- Fixed some typos.

8 years agoMerging r38637 through r38703 from trunk into soc-2011-tomato
Sergey Sharybin [Mon, 25 Jul 2011 18:05:27 +0000 (18:05 +0000)]
Merging r38637 through r38703 from trunk into soc-2011-tomato

8 years agoFix #28035: point density texture doesn't bake.
Brecht Van Lommel [Mon, 25 Jul 2011 16:37:10 +0000 (16:37 +0000)]
Fix #28035: point density texture doesn't bake.

8 years agoFix #28079: UV propertional editing was incorrectly influenced by the
Brecht Van Lommel [Mon, 25 Jul 2011 16:16:32 +0000 (16:16 +0000)]
Fix #28079: UV propertional editing was incorrectly influenced by the
mesh X mirror option.

8 years agoFix #28014: joystick sensor not working. Broke this with an earlier commit
Brecht Van Lommel [Mon, 25 Jul 2011 15:44:41 +0000 (15:44 +0000)]
Fix #28014: joystick sensor not working. Broke this with an earlier commit
trying to fix blenderplayer startup warnings. It seems we do need to init
the SDL video subsystem even if we only want events, thanks Juha Maki-Kanto
for pointing this out.

8 years agoBGE BugFix for: [#23874] Custom projection matrix doesn't work in custom viewport
Dalai Felinto [Mon, 25 Jul 2011 15:37:55 +0000 (15:37 +0000)]
BGE BugFix for: [#23874] Custom projection matrix doesn't work in custom viewport
This was never highly tested, that's why I never committed (my patch for this was from September 2010).

But once again I got a report that this bug was a deal-break and the patch seems to work for this artist.
I believe it's working, but I will keep my eyes open for this.

8 years agomore vector order switching.
Campbell Barton [Mon, 25 Jul 2011 09:31:39 +0000 (09:31 +0000)]
more vector order switching.

8 years agominor edits to animation playback operator
Campbell Barton [Mon, 25 Jul 2011 07:14:54 +0000 (07:14 +0000)]
minor edits to animation playback operator
- remove own copyright from script
- print command before executing (helps troubleshooting)

8 years agostyle changes for operator scripts & some pep8 edits.
Campbell Barton [Mon, 25 Jul 2011 06:40:16 +0000 (06:40 +0000)]
style changes for operator scripts & some pep8 edits.

8 years agofix for DingTo's recent commit with the animation player, it ignored the case where...
Campbell Barton [Mon, 25 Jul 2011 06:38:21 +0000 (06:38 +0000)]
fix for DingTo's recent commit with the animation player, it ignored the case where the player is not an absolute path but found in the users $PATH (as is common on *nix systems).

now try and execute player, reporting the exception rather then checking the player file exists.
also made some pep8-80 style edits.

8 years agoswap vertor multiplication order for add torus.
Campbell Barton [Mon, 25 Jul 2011 06:09:39 +0000 (06:09 +0000)]
swap vertor multiplication order for add torus.

8 years agoedits to quick effects scripts
Campbell Barton [Mon, 25 Jul 2011 05:54:32 +0000 (05:54 +0000)]
edits to quick effects scripts
- use uv layer data api rather then operator.
- switch vector rotation order.
- made some style changes, use 80 width.

8 years agoExternal image operators.
Campbell Barton [Mon, 25 Jul 2011 05:10:44 +0000 (05:10 +0000)]
External image operators.
- use bpy.data.is_saved (was using a workaround from when before this attribute was added)
- fixed a bug where editing relative paths could fail.

8 years agofix [#28075] After the correction of No.38528 is applied, the following phenomenon...
Campbell Barton [Mon, 25 Jul 2011 04:00:11 +0000 (04:00 +0000)]
fix [#28075] After the correction of No.38528 is applied, the following phenomenon has been generated.
own fault in recent addition of bpy.path.basename() not supporting byte paths.

8 years agoreverse vector multiplication order for some internal functions.
Campbell Barton [Mon, 25 Jul 2011 03:59:01 +0000 (03:59 +0000)]
reverse vector multiplication order for some internal functions.

8 years agodeprecate multiplication orders:
Campbell Barton [Mon, 25 Jul 2011 01:44:19 +0000 (01:44 +0000)]
deprecate multiplication orders:
 vector * matrix
 vector *= matrix
 vector * quaternion
 vector *= quaternion

Use the reverse order instead, enable WITH_ASSERT_ABORT in cmake to promote the warnings into errors.

8 years agoEffector calculations are now thread safe.
Janne Karhu [Sun, 24 Jul 2011 17:44:22 +0000 (17:44 +0000)]
Effector calculations are now thread safe.
* where_is_object_time was called for every effector evaluation only to determine the object velocity in some rare cases.
* Calculating the effector velocity is now done in the effector precalculation stage.
* Removing this makes the code thread safe and also should give some nice performance boosts when simulating a lot of points.
* Thanks to MiikaH for noticing this problem.

8 years agoCamera tracking integration
Sergey Sharybin [Sun, 24 Jul 2011 12:36:14 +0000 (12:36 +0000)]
Camera tracking integration
===========================

- Fixed incorrect mouse sliding when resizing area which isn't
  symmetrical to marker's position.
- Added "Clip" group to User Preferences -> Input lust.
  Now hotkeys can be investigated there and also, they can be changed there.

8 years ago2.5 World Buttons:
Thomas Dinges [Sun, 24 Jul 2011 11:24:30 +0000 (11:24 +0000)]
2.5 World Buttons:
* Exposure and Color Range buttons were missing, added them back.

8 years ago* Minor code cleanup / comment changing. No functional changes.
Thomas Dinges [Sun, 24 Jul 2011 11:11:23 +0000 (11:11 +0000)]
* Minor code cleanup / comment changing. No functional changes.

8 years agoNew dilation function from Morten Mikkelsen (aka sparky).
Sergey Sharybin [Sun, 24 Jul 2011 10:26:22 +0000 (10:26 +0000)]
New dilation function from Morten Mikkelsen (aka sparky).

This commit fixes very noticeable seams caused by margins
calculated incorrectly. This commit changes way margin is
calculated in and makes textures really seamless.

Also margin limited to 32 isn't good now -- artists are baking
really large textures nowadays so margin is now limited to 64px.

Thank you, Morten!

8 years agoAdd Push/Pull to toolbar
Daniel Salazar [Sun, 24 Jul 2011 00:59:03 +0000 (00:59 +0000)]
Add Push/Pull to toolbar