Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixes to "Image Plane" preview dialog #49

Merged
merged 1 commit into from

2 participants

@Micheus

NOTE:

  • fixed a issue related to the latest changes made to preview dialog - it was changed the parameters formatation. Thanks to tkbd for report it. [Micheus]
  • added the ip_helper image to the texture folder in the project.
@Micheus Micheus Fixes to Image Plane preview dialog
NOTE:
 - fixed a issue related to the latest changes made to preview dialog - it was changed the parameters formatation. Thanks to tkbd for report it. [Micheus]
 - added the ip_helper image to the project sources.
d9f0d45
@dgud dgud merged commit d9f0d45 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 2, 2013
  1. @Micheus

    Fixes to Image Plane preview dialog

    Micheus authored
    NOTE:
     - fixed a issue related to the latest changes made to preview dialog - it was changed the parameters formatation. Thanks to tkbd for report it. [Micheus]
     - added the ip_helper image to the project sources.
This page is out of date. Refresh to see the latest.
View
4 plugins_src/primitives/wpc_image.erl
@@ -82,7 +82,7 @@ make_image(FileName, Image0, Ask, St) when is_atom(Ask) ->
{error,_} -> ok;
{Id_Img_Plane,_,_}=ImData ->
Id_Img_Helper = load_ip_helper(),
- wings_ask:dialog(?__(2,"Image Plane"), {{preview,ungrab}, image_dialog(FileName, Id_Img_Helper)},
+ wings_ask:dialog(?__(2,"Image Plane"), {preview,image_dialog(FileName, Id_Img_Helper)},
fun
({dialog_preview,Res}) ->
St1 = make_image_0(ImData,Res,St),
@@ -304,7 +304,7 @@ draw_img_helper_1(X, Y, W, H) ->
wings_io:border_only(X,Y1,W,H1).
load_ip_helper() ->
- Name=wings_util:lib_dir(wings)++"/plugins/primitives/ip_helper.png",
+ Name=wings_util:lib_dir(wings)++"/textures/ip_helper.png",
Props = [{filename,Name}],
case wpa:image_read(Props) of
#e3d_image{}=Image ->
View
BIN  textures/ip_helper.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Something went wrong with that request. Please try again.